From ed9a37c5541a8746b9718dcf74a248726cfb6616 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sat, 15 Apr 2017 23:21:34 +0200 Subject: [PATCH] rhash: install shared library. --- common/shlibs | 1 + srcpkgs/rhash-devel | 1 + srcpkgs/rhash/template | 13 +++++++++++++ 3 files changed, 15 insertions(+) create mode 120000 srcpkgs/rhash-devel diff --git a/common/shlibs b/common/shlibs index 68214d531a6..bf1a6b7a579 100644 --- a/common/shlibs +++ b/common/shlibs @@ -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 diff --git a/srcpkgs/rhash-devel b/srcpkgs/rhash-devel new file mode 120000 index 00000000000..a4df32cd166 --- /dev/null +++ b/srcpkgs/rhash-devel @@ -0,0 +1 @@ +rhash \ No newline at end of file diff --git a/srcpkgs/rhash/template b/srcpkgs/rhash/template index de517aa7627..3d58d626ffe 100644 --- a/srcpkgs/rhash/template +++ b/srcpkgs/rhash/template @@ -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" + } }