diff options
author | Bart Ribbers <bribbers@disroot.org> | 2019-05-29 11:22:20 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-06-05 19:38:55 +0000 |
commit | e8a6d41558c5f1c919c8486bdc64e3216f5231e3 (patch) | |
tree | 287065486b0b924191c1511dc037eb4660a8ec03 /community/libblockdev/APKBUILD | |
parent | 31ae663718a263e8ace2801e4ec1033e7f053b0b (diff) | |
download | aports-e8a6d41558c5f1c919c8486bdc64e3216f5231e3.tar.bz2 aports-e8a6d41558c5f1c919c8486bdc64e3216f5231e3.tar.xz |
community/libblockdev: move from main
Diffstat (limited to 'community/libblockdev/APKBUILD')
-rw-r--r-- | community/libblockdev/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/community/libblockdev/APKBUILD b/community/libblockdev/APKBUILD new file mode 100644 index 0000000000..0f28b70b63 --- /dev/null +++ b/community/libblockdev/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Rasmus Thomsen <oss@cogitri.dev> +# Maintainer: Rasmus Thomsen <oss@cogitri.dev> +pkgname=libblockdev +pkgver=2.21 +pkgrel=0 +pkgdesc="Library for manipulating block devices" +url="https://github.com/storaged-project/libblockdev" +arch="all" +license="LGPL-2.1-or-later" +makedepends="python3 cryptsetup-dev libbytesize-dev ndctl-dev lvm2-dev + glib-dev kmod-dev parted-dev nss-dev yaml-dev coreutils eudev-dev + dmraid-dev volume_key-dev bash gobject-introspection-dev" +subpackages="$pkgname-dev py3-$pkgname:_py3" +source="https://github.com/storaged-project/libblockdev/releases/download/${pkgver}-1/libblockdev-${pkgver}.tar.gz + fix-glibc-glob-onlydir.patch" + +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 - python3-bindings" + arch="noarch" + + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib +} + +sha512sums="7e6e12716e18c5e48f3b2207f132c242d99ce540f55de3b6932ac3427cb532d9074358c828d9702df71068a8454c642a4c0ff96e62a567ed1c1247c59ece432b libblockdev-2.21.tar.gz +199b184b2955a49320f2d8dd71be31507f170a21652c8dbc5d2821b5a451d8252402c4a14f8c0cef6b95c8a9ae85a6f385d5b9720d2d683b3b41fe1a056fc438 fix-glibc-glob-onlydir.patch" |