From b2ca694512b2184aa2a6a9082b5cfa10409e27d9 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 14 Jul 2018 18:32:32 -0500 Subject: user/libbytesize: add beleaguered package --- user/libbytesize/APKBUILD | 50 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 user/libbytesize/APKBUILD (limited to 'user/libbytesize/APKBUILD') diff --git a/user/libbytesize/APKBUILD b/user/libbytesize/APKBUILD new file mode 100644 index 000000000..e9c693deb --- /dev/null +++ b/user/libbytesize/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: A. Wilcox +# Maintainer: A. Wilcox +pkgname=libbytesize +pkgver=1.3 +pkgrel=0 +pkgdesc="Library for working with sizes in bytes" +url="https://github.com/storaged-project/libbytesize/" +arch="all" +options="!check" # Requires locale(1). +license="LGPL-2.1+" +makedepends="gmp-dev mpfr-dev python3" +subpackages="$pkgname-dev $pkgname-lang py3-bytesize:py:noarch" +source="https://github.com/storaged-project/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz + no-msgcat.patch" + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --without-python2 + # XXX We do not have a msgfilter app in gettext-tiny. + # This would be required to ship a Serbian translation. + rm po/sr* + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +py() { + pkgdesc="$pkgdesc (Python bindings)" + depends="py3-six" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ +} + +sha512sums="a8e5b5d59d0a97ae52a2c0f437c4d7fd8afc8249762be99027e3beeadc6c54ad52a09c1d30e66466b99496fcf3419fa799d0fcccf61c0661b3e9cff48d0054af libbytesize-1.3.tar.gz +5f8b46c257553672b7c2501bae99ff44594b91bfcf3f1ee209a390a8cdda693616e8207a99cea2e1263093324807a307dac9e643d1482e14f9ba604f51a05d6d no-msgcat.patch" -- cgit v1.2.3-70-g09d2