mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-27 09:21:41 +02:00
33 lines
946 B
Plaintext
33 lines
946 B
Plaintext
# Contributor: André Klitzing <aklitzing@gmail.com>
|
|
# Maintainer: André Klitzing <aklitzing@gmail.com>
|
|
pkgname=libbytesize
|
|
pkgver=1.4
|
|
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="54aba1f605ad662ff525c47206e8342e727c807692225361f1fa8d6a66c00f2740fc3d3672978eec2806227d85f146034042a9808e458d8d6271a08934032959 libbytesize-1.4.tar.gz"
|