rhash: install shared library.

This commit is contained in:
Enno Boland 2017-04-15 23:21:34 +02:00
parent 26a659e85b
commit ed9a37c554
3 changed files with 15 additions and 0 deletions

View File

@ -2816,3 +2816,4 @@ libmutter-cogl-0.so mutter-3.24.0_1
libmutter-cogl-pango-0.so mutter-3.24.0_1
libmozjs-.so mozjs38-38.8.0_1
libostree-1.so.1 libostree-2017.3_1
librhash.so.0 rhash-1.3.4_1

1
srcpkgs/rhash-devel Symbolic link
View File

@ -0,0 +1 @@
rhash

View File

@ -11,6 +11,8 @@ license="RHash"
homepage="https://github.com/rhash/RHash"
distfiles="https://github.com/rhash/RHash/archive/v${version}.tar.gz"
checksum=1f6daa0c066c94d2575f0aace76f34e5800c51f59f4b30029ddcfa9799564f98
make_build_target="all lib-shared"
make_install_target="install install-lib-shared"
post_extract() {
sed -i 's/__GLIBC__/__linux__/' librhash/byte_order.h
@ -18,4 +20,15 @@ post_extract() {
post_install() {
vlicense COPYING
make -C librhash install-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"
}
}