summaryrefslogtreecommitdiff
path: root/user/volume_key/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-14 04:34:12 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-14 04:34:12 -0500
commitdd4a1428a88f298bcc833d9f831fa800c788b497 (patch)
tree46fd2234232daaa8d79ca9ce7b88630c71a1d0f2 /user/volume_key/APKBUILD
parent0829ec485ab9263aa77dc4da4ba07a42d7464762 (diff)
downloadpackages-dd4a1428a88f298bcc833d9f831fa800c788b497.tar.gz
packages-dd4a1428a88f298bcc833d9f831fa800c788b497.tar.bz2
packages-dd4a1428a88f298bcc833d9f831fa800c788b497.tar.xz
packages-dd4a1428a88f298bcc833d9f831fa800c788b497.zip
user/volume_key: new package
Diffstat (limited to 'user/volume_key/APKBUILD')
-rw-r--r--user/volume_key/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/user/volume_key/APKBUILD b/user/volume_key/APKBUILD
new file mode 100644
index 000000000..6b9a7c0c7
--- /dev/null
+++ b/user/volume_key/APKBUILD
@@ -0,0 +1,49 @@
+# 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"