# Contributor: André Klitzing # Maintainer: André Klitzing pkgname=libbytesize pkgver=1.3 pkgrel=0 pkgdesc="Library for working with arbitrary big sizes in bytes" url="https://github.com/rhinstaller/libbytesize" arch="all" license="LGPL-2.1-or-later" makedepends="gettext-dev gmp-dev mpfr-dev pcre-dev python3" subpackages="$pkgname-dev $pkgname-lang py-$pkgname:py" source="https://github.com/storaged-project/libbytesize/releases/download/$pkgver/$pkgname-$pkgver.tar.gz" build() { cd "$builddir" ./configure --prefix=/usr make } package() { cd "$builddir" make DESTDIR="$pkgdir" install } py() { pkgdesc="Python bindings for $pkgname" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ } sha512sums="a8e5b5d59d0a97ae52a2c0f437c4d7fd8afc8249762be99027e3beeadc6c54ad52a09c1d30e66466b99496fcf3419fa799d0fcccf61c0661b3e9cff48d0054af libbytesize-1.3.tar.gz"