New package: libbytesize-1.2.

Closes: #12489 [via git-merge-pr]
This commit is contained in:
maxice8 2018-03-13 19:20:42 -03:00 committed by Michael Aldridge
parent 7f8f9b292b
commit 89bb5b31d3
4 changed files with 39 additions and 0 deletions

View file

@ -968,6 +968,7 @@ libmtdev.so.1 mtdev-1.1.2_1
libcryptsetup.so.12 libcryptsetup-2.0.0_1
libgusb.so.2 libgusb-0.1.3_1
libmash-0.2.so.0 mash-0.2.0_4
libbytesize.so.1 libbytesize-1.2_1
libudisks2.so.0 udisks2-1.93.0_1
libgcr-base-3.so.1 gcr-3.3.92_1
libgck-1.so.0 gcr-3.8.0_1

1
srcpkgs/libbytesize-devel Symbolic link
View file

@ -0,0 +1 @@
libbytesize

1
srcpkgs/libbytesize-python3 Symbolic link
View file

@ -0,0 +1 @@
libbytesize

View file

@ -0,0 +1,36 @@
# Template file for 'libbytesize'
pkgname=libbytesize
version=1.2
revision=1
build_style=gnu-configure
hostmakedepends="python3"
makedepends="pcre-devel gmp-devel mpfr-devel"
short_desc="A library for operations with sizes in bytes"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="LGPL-2.1-or-later"
homepage="https://github.com/storaged-project/libbytesize"
distfiles="https://github.com/storaged-project/libbytesize/releases/download/${version}/libbytesize-${version}.tar.gz"
checksum=65656ed62080d73d0f21d9647cee20533377bee150e91807fd54c502f3e1108f
do_check() {
# broken, one depends on systemd
:
}
libbytesize-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}
libbytesize-python3_package() {
depends="python3 ${sourcepkg}>=${version}_${revision}"
short_desc+=" - python3 bindings"
pkg_install() {
vmove usr/lib/python3*
}
}