archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libbytesize / repos / extra-x86_64 / PKGBUILD
blobcda66a7641de2d384a8ac8b31e6c4ec5a430d7d9
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=libbytesize
4 pkgver=2.6
5 pkgrel=3
6 pkgdesc='A tiny library providing a C "class" for working with arbitrary big sizes in bytes'
7 arch=('x86_64')
8 url="https://github.com/rhinstaller/libbytesize"
9 license=('LGPL')
10 depends=('mpfr' 'pcre2')
11 makedepends=('python')
12 optdepends=('python: for bscalc command')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/rhinstaller/libbytesize/archive/$pkgver.tar.gz")
14 sha512sums=('16bbdebc4696700674b0d6f30322ebf0c7e123294ac91de67c1384e897b988c5d16aacffbab32ee5035c6f7b1cefbb55af91bb439c6948ef4f468d93f5ce95c8')
16 build() {
17   cd "$srcdir"/$pkgname-$pkgver
18   ./autogen.sh
19   ./configure --prefix=/usr
20   make
23 package() {
24   cd "$srcdir"/$pkgname-$pkgver
25   make DESTDIR="$pkgdir" install