diff options
author | Rasmus Thomsen <oss@cogitri.dev> | 2019-05-02 15:32:02 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-05-27 18:23:11 +0000 |
commit | 1e4017036f9b57f519b56135307a5c3b2081ad69 (patch) | |
tree | 19f0ed57822a790c3ed473509fff5cf7b6679239 | |
parent | 1606a2ff8ec904210b91ddbd61243617f0847e4f (diff) | |
download | aports-1e4017036f9b57f519b56135307a5c3b2081ad69.tar.bz2 aports-1e4017036f9b57f519b56135307a5c3b2081ad69.tar.xz |
main/libblockdev: new aport
-rw-r--r-- | main/libblockdev/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/main/libblockdev/APKBUILD b/main/libblockdev/APKBUILD new file mode 100644 index 0000000000..1841d83034 --- /dev/null +++ b/main/libblockdev/APKBUILD @@ -0,0 +1,43 @@ +# 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" + +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" |