# Contributor: A. Wilcox # Maintainer: A. Wilcox pkgname=libbytesize pkgver=2.2 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+" depends="" makedepends="gmp-dev mpfr-dev pcre2-dev python3" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang py3-bytesize:py:noarch" source="https://github.com/storaged-project/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz no-msgcat.patch" build() { ./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() { make check } package() { 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="4538ac3499a24023c21fe07f527e400f99509921e377248970ac2da0eaf1655ddb261f432eed46a59ef69a1275ba7d1e5b0cc488d64eeea936b6cfa54c552ac1 libbytesize-2.2.tar.gz 5f8b46c257553672b7c2501bae99ff44594b91bfcf3f1ee209a390a8cdda693616e8207a99cea2e1263093324807a307dac9e643d1482e14f9ba604f51a05d6d no-msgcat.patch"