diff options
author | Rasmus Thomsen <oss@cogitri.dev> | 2019-05-02 15:32:09 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-05-27 18:23:11 +0000 |
commit | bcf804fc46dcecc2b73ff75894c39d363e27e0a2 (patch) | |
tree | a9b459de649f8c0fe620679c96e8f03fcb38237f /main/volume_key/APKBUILD | |
parent | 1e4017036f9b57f519b56135307a5c3b2081ad69 (diff) |
main/volume_key: new aport
Diffstat (limited to 'main/volume_key/APKBUILD')
-rw-r--r-- | main/volume_key/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/main/volume_key/APKBUILD b/main/volume_key/APKBUILD new file mode 100644 index 00000000000..7dc806a5302 --- /dev/null +++ b/main/volume_key/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Rasmus Thomsen <oss@cogitri.dev> +# Maintainer: Rasmus Thomsen <oss@cogitri.dev> +pkgname=volume_key +pkgver=0.3.12 +pkgrel=0 +pkgdesc="Library for manipulating storage volume encryption keys" +url="https://pagure.io/volume_key" +arch="all" +license="GPL-2.0-or-later" +makedepends="python3-dev cryptsetup-dev glib-dev gpgme-dev nss-dev" +checkdepends="nss-tools" +subpackages="$pkgname-dev $pkgname-doc py3-$pkgname:_py3" +source="https://releases.pagure.org/volume_key/volume_key-${pkgver}.tar.xz" + +build() { + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var + make +} + +check() { + make check +} + +package() { + make DESTDIR="$pkgdir" install +} + +_py3() { + pkgdesc="$pkgdesc (for python3)" + + mkdir -p "$subpkgdir"/usr/lib/ + mv "$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib +} +sha512sums="d056154c9b9d23e4eb661946dd59ed97e116903a3afcff9d9e29258408082f33dcbb69958724143f6bf191a3da488a03b6c02af287790990ed6459e29d66553c volume_key-0.3.12.tar.xz" |