1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
4 pkgname=(volume_key python-volume_key)
7 pkgdesc="A library for manipulating storage volume encryption keys and storing them separately from volumes to handle forgotten passphrases"
9 url="https://pagure.io/volume_key"
22 source=("https://releases.pagure.org/volume_key/volume_key-$pkgver.tar.xz")
23 sha512sums=('d056154c9b9d23e4eb661946dd59ed97e116903a3afcff9d9e29258408082f33dcbb69958724143f6bf191a3da488a03b6c02af287790990ed6459e29d66553c')
24 b2sums=('4a0424d51878855c69bdf969b616f3a563074976ad7b07aa848140266d97f66de9c52e1a6ed8913df93077d5966c3ab99afc78c3b22c410f1eadf5447ca2f416')
27 local p="$1" f d; shift
29 d="$srcdir/$p/${f#$pkgdir/}"
30 mkdir -p "$(dirname "$d")"
32 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
39 find . -name ".pyc" -delete
44 export CFLAGS+=" $(python3-config --includes)"
45 ./configure --prefix=/usr
46 # prevent excessive overlinking due to libtool
47 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
51 package_volume_key() {
62 'python-volume_key: for Python bindings'
65 make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
69 _pick python-$pkgbase usr/lib/python*
73 package_python-volume_key() {
74 pkgdesc+=" - Python bindings"
83 mv -v $pkgname/* "$pkgdir"