python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / rhash / template
blobd2d3f3c9afcbd8558c98d098c8f4558916ac0a3a
1 # Template file for 'rhash'
2 pkgname=rhash
3 version=1.3.6
4 revision=2
5 wrksrc="RHash-${version}"
6 build_style=gnu-configure
7 configure_args="--enable-openssl --disable-openssl-runtime"
8 conf_files="/etc/rhashrc"
9 makedepends="libressl-devel"
10 short_desc="Utility for computing hash sums and creating magnet links"
11 maintainer="Leah Neukirchen <leah@vuxu.org>"
12 license="RHash"
13 homepage="https://github.com/rhash/RHash"
14 distfiles="https://github.com/rhash/RHash/archive/v${version}.tar.gz"
15 checksum=964df972b60569b5cb35ec989ced195ab8ea514fc46a74eab98e86569ffbcf92
16 make_build_target="all lib-shared"
17 make_install_target="install install-lib-shared"
19 post_extract() {
20         sed -i 's/__GLIBC__/__linux__/' librhash/byte_order.h
23 post_install() {
24         vlicense COPYING
25         make -C librhash install-headers DESTDIR=$DESTDIR PREFIX=/usr
26         ln -s librhash.so.0 $DESTDIR/usr/lib/librhash.so
29 rhash-devel_package() {
30         depends="${sourcepkg}>=${version}_${revision}"
31         short_desc+=" - development files"
32         pkg_install() {
33                 vmove usr/include
34                 vmove "usr/lib/*.so"
35         }