void-packages/srcpkgs/libbytesize/template

39 lines
1.0 KiB
Bash

# Template file for 'libbytesize'
pkgname=libbytesize
version=1.3
revision=2
build_style=gnu-configure
hostmakedepends="python3"
makedepends="mpfr-devel pcre-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=d1991726a67ee44e4c9b3deaba5bbacd5392d3364439efce08060abc45edf5d0
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() {
noarch=yes
pycompile_module="bytesize"
depends="python3-six ${sourcepkg}>=${version}_${revision}"
short_desc+=" - Python3 bindings"
pkg_install() {
vmove usr/lib/python3*
}
}