38 lines
1.0 KiB
Bash
38 lines
1.0 KiB
Bash
# Template file for 'rhash'
|
|
pkgname=rhash
|
|
version=1.4.1
|
|
revision=2
|
|
wrksrc="RHash-${version}"
|
|
build_style=configure
|
|
configure_args="--enable-openssl --disable-openssl-runtime
|
|
--prefix=/usr --sysconfdir=/etc"
|
|
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=430c812733e69b78f07ce30a05db69563450e41e217ae618507a4ce2e144a297
|
|
make_build_target="all lib-shared"
|
|
make_install_target="install install-lib-shared"
|
|
|
|
post_extract() {
|
|
sed -i 's/__GLIBC__/__linux__/' librhash/byte_order.h
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
make -C librhash install-lib-headers DESTDIR=$DESTDIR PREFIX=/usr
|
|
ln -s librhash.so.0 $DESTDIR/usr/lib/librhash.so
|
|
}
|
|
|
|
rhash-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|