void-packages/srcpkgs/libbytesize/template
maxice8 89bb5b31d3 New package: libbytesize-1.2.
Closes: #12489 [via git-merge-pr]
2018-03-15 19:29:02 -07:00

36 lines
1,006 B
Bash

# 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*
}
}