summaryrefslogblamecommitdiff
path: root/user/volume_key/APKBUILD
blob: 85ed4d482801b974bb1dd1ebb0a31860074c9249 (plain) (tree)
1
2
3
4


                                                  
             










                                                                    
                                                                         




























                                                            
                                                                                                                                                                       
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=volume_key
pkgver=0.3.11
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"

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="b9da00578b31c96231ebde55fd91c9aafbd663e541c560460fb6c3305e1a0e1fb3115a95682dc4713027d084e14ffa39d638653384a18d69f5dc892fc4855a97  volume_key-0.3.11.tar.xz"