void-packages/srcpkgs/rhash/template

37 lines
934 B
Bash

# Template file for 'rhash'
pkgname=rhash
version=1.4.4
revision=2
build_style=configure
configure_args="--enable-openssl --prefix=/usr --sysconfdir=/etc"
make_install_target="install install-lib-headers"
conf_files="/etc/rhashrc"
makedepends="openssl-devel"
short_desc="Utility for computing hash sums and creating magnet links"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="0BSD"
homepage="https://github.com/rhash/RHash"
distfiles="https://github.com/rhash/RHash/archive/v${version}.tar.gz"
checksum=8e7d1a8ccac0143c8fe9b68ebac67d485df119ea17a613f4038cda52f84ef52a
post_extract() {
vsed -i -e 's/__GLIBC__/__linux__/' librhash/byte_order.h
}
post_install() {
vlicense COPYING
(
cd $DESTDIR/usr/lib
ln -sf librhash.so.[0-9] librhash.so
)
}
rhash-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}