summaryrefslogblamecommitdiff
path: root/user/volume_key/APKBUILD
blob: 6b9a7c0c75d45b1b978c310b59b5c36c075529a8 (plain) (tree)
















































                                                                                                                                                                      
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=volume_key
pkgver=0.3.10
pkgrel=0
pkgdesc="Storage volume encryption key management library"
url="https://pagure.io/volume_key"
arch="all"
options="!check"  # well, this is busted.
license="GPL-2.0+"
depends=""
makedepends="cryptsetup-dev glib-dev gpgme-dev nss-dev python3-dev
	util-linux-dev"
checkdepends="nss-tools"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang py-$pkgname:py"
source="https://releases.pagure.org/volume_key/volume_key-$pkgver.tar.xz
	worst-python-hack-ever.patch
	"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

py() {
	pkgdesc="$pkgdesc (Python 3 bindings)"
	mkdir -p "$subpkgdir"/usr/lib/
	mv "$pkgdir"/usr/lib/python3.6 "$subpkgdir"/usr/lib/
}

sha512sums="b050d333e021bc3721f5e72c1d2498adea3265afe7f702e1b1e859546755745ac70dcffc194739a4833d4b0b77168506f7fe90fde382d8aab4df2af7b635932b  volume_key-0.3.10.tar.xz
63f197e7d72e08110ad2fc13e2aa0cf50b5cbac91b10244778552adec8a2ee34255a795f90fbb50bb4ebb3404ce9bc5caf877c536f11396291ba6f71a0c07526  worst-python-hack-ever.patch"