| Name |
libbytesize |
| Description |
Library for working with arbitrary big sizes in bytes |
| Version |
2.11-r0 |
| Package Base |
libbytesize |
| Homepage |
https://github.com/storaged-project/libbytesize |
| Maintainers |
['André Klitzing <aklitzing@gmail.com>'] |
| Contributors |
['André Klitzing <aklitzing@gmail.com>', 'Leo <thinkabit.ukim@gmail.com>'] |
| Distro-repo |
https://gitlab.alpinelinux.org/alpine/aports/-/tree/3.22-stable/community/libbytesize |
| Sources |
['https://github.com/storaged-project/libbytesize/releases/download/2.11-r0/libbytesize-2.11-r0.tar.gz'] |
| Dependencies |
['libc.musl-x86_64.so.1', 'libgmp.so.10', 'libintl.so.8', 'libmpfr.so.6', 'libpcre2-8.so.0', 'python3'] |
| Optional-Dependencies |
[] |
| Build-Dependencies |
['gettext-dev', 'gmp-dev', 'mpfr-dev', 'pcre2-dev', 'python3'] |
| Provides |
['so:libbytesize.so.1=1.0.0'] |
| Builddate |
31-08-2024 13:11:35 |
| Architecture |
x86_64 |
| Distro-Version |
v3.22 |
| Licenses |
['LGPL-2.1-or-later'] |
| Hash |
Q1W5I/be1HJPdyZNXj0mE1g70YGC4= |
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=libbytesize
pkgver=2.11
pkgrel=0
pkgdesc="Library for working with arbitrary big sizes in bytes"
options="!check" # Tests require dealing with locales
url="https://github.com/storaged-project/libbytesize"
arch="all"
license="LGPL-2.1-or-later"
makedepends="gettext-dev gmp-dev mpfr-dev pcre2-dev python3"
checkdepends="bash py3-six"
subpackages="
$pkgname-dev
$pkgname-lang
py3-$pkgname:_py:noarch
$pkgname-doc
$pkgname-tools:_tools:noarch
"
source="https://github.com/storaged-project/libbytesize/releases/download/$pkgver/libbytesize-$pkgver.tar.gz"
build() {
CFLAGS="$CFLAGS -flto=auto -lintl" \
./configure \
--host=$CHOST \
--build=$CBUILD \
--prefix=/usr \
--disable-dependency-tracking
make
}
check() {
# Disable test that depends on unpackaged pocketlint
sed -i 's|canary_tests.sh$||g' tests/Makefile
make check
}
package() {
make DESTDIR="$pkgdir" install
}
_py() {
pkgdesc="Python bindings for $pkgname"
depends="python3"
replaces="py-libbytesize" # Backwards compatibility
provides="py-libbytesize=$pkgver-r$pkgrel" # Backwards compatibility
amove usr/lib/python*
}
_tools() {
pkgdesc="Tools for libbytesize"
depends="py-$pkgname"
amove usr/bin
}
sha512sums="
eb539c878cc0f857772b07aac4aca2732d3298fa649011f3f8a95fce83b1cc5b5b7001f6bb0c168ed47b7886d34c2e139ded9e66994a9a10784f9f7944475190 libbytesize-2.11.tar.gz
"