Name libbytesize
Description A tiny library providing a C "class" for working with arbitrary big sizes in bytes
Version 2.12-3
Package Base libbytesize
Homepage https://github.com/storaged-project/libbytesize
Maintainers ['Balló György <bgyorgy@archlinux.org>', 'Felix Yan <felixonmars@archlinux.org>']
Contributors []
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/libbytesize
Sources ['libbytesize-2.12.tar.gz::https://github.com/rhinstaller/libbytesize/archive/2.12.tar.gz']
Dependencies ['glibc', 'gmp', 'mpfr', 'pcre2']
Optional-Dependencies ['python']
Build-Dependencies ['python']
Provides []
Builddate 12-01-2026 03:27:23
Architecture x86_64
Distro-Version
Licenses ['LGPL-2.1-or-later']
Hash 9d83943d26d0574b22398201610431a761a419394a9724fb7ac32bf2b7720a04
# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=libbytesize
pkgver=2.12
pkgrel=3
pkgdesc='A tiny library providing a C "class" for working with arbitrary big sizes in bytes'
arch=('x86_64')
url="https://github.com/storaged-project/libbytesize"
license=('LGPL-2.1-or-later')
depends=('glibc' 'gmp' 'mpfr' 'pcre2')
makedepends=('python')
optdepends=('python: for Python bindings and for the bscalc command')
source=("$pkgname-$pkgver.tar.gz::https://github.com/rhinstaller/libbytesize/archive/$pkgver.tar.gz")
sha512sums=('2742e9ad9377295fce298a2b70a1a6b9859f36fea3b9ac74d2281b359a1419917c04e001bda1d999aa4f993733bb4d6f0e2a2c7ed3b0b89080140df7ee96fc6c')

prepare() {
  cd "$srcdir"/$pkgname-$pkgver
  ./autogen.sh
}

build() {
  cd "$srcdir"/$pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

check() {
  cd "$srcdir"/$pkgname-$pkgver
  make check TESTS=libbytesize_unittest.sh
}

package() {
  cd "$srcdir"/$pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}