diff options
Diffstat (limited to 'user')
-rw-r--r-- | user/volume_key/APKBUILD | 49 | ||||
-rw-r--r-- | user/volume_key/worst-python-hack-ever.patch | 20 |
2 files changed, 69 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" diff --git a/user/volume_key/worst-python-hack-ever.patch b/user/volume_key/worst-python-hack-ever.patch new file mode 100644 index 000000000..1ecb334f4 --- /dev/null +++ b/user/volume_key/worst-python-hack-ever.patch @@ -0,0 +1,20 @@ +--- volume_key-0.3.10/Makefile.in.old 2018-05-21 08:29:56.000000000 +0000 ++++ volume_key-0.3.10/Makefile.in 2018-07-14 09:27:05.430000000 +0000 +@@ -683,7 +683,7 @@ + $(libcryptsetup_CFLAGS) $(nss_CFLAGS) + + LOCALEDIR_CPPFLAGS = -DLOCALEDIR='"$(localedir)"' +-PYTHON_CPPFLAGS = -I/usr/include/python$(PYTHON_VERSION) ++PYTHON_CPPFLAGS = -I/usr/include/python$(PYTHON_VERSION)m + SUBDIRS = po + dist_man_MANS = doc/volume_key.8 + lib_LTLIBRARIES = lib/libvolume_key.la +@@ -713,7 +713,7 @@ + python__volume_key_la_SOURCES = python/volume_key_wrap.c + python__volume_key_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_CPPFLAGS) + python__volume_key_la_LDFLAGS = -module -avoid-version $(glib_LIBS) +-python__volume_key_la_LIBADD = lib/libvolume_key.la -lpython$(PYTHON_VERSION) \ ++python__volume_key_la_LIBADD = lib/libvolume_key.la -lpython$(PYTHON_VERSION)m \ + $(glib_LIBS) $(nss_LIBS) + + src_volume_key_SOURCES = src/volume_key.c |