void-packages/srcpkgs/rhash/template

37 lines
934 B
Bash

# Template file for 'rhash'
pkgname=rhash
version=1.4.5
revision=1
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=6db837e7bbaa7c72c5fd43ca5af04b1d370c5ce32367b9f6a1f7b49b2338c09a
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"
}
}