From 09436b7275d58d4ef813f74ab9717d76b9cc7310 Mon Sep 17 00:00:00 2001 From: John Zimmermann Date: Thu, 27 Sep 2018 20:27:34 +0200 Subject: [PATCH] xxHash: add devel and library subpackages --- common/shlibs | 1 + srcpkgs/libxxHash | 1 + srcpkgs/xxHash-devel | 1 + srcpkgs/xxHash/template | 25 +++++++++++++++++++------ 4 files changed, 22 insertions(+), 6 deletions(-) create mode 120000 srcpkgs/libxxHash create mode 120000 srcpkgs/xxHash-devel diff --git a/common/shlibs b/common/shlibs index 5425754f702..d2ccd797388 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3169,6 +3169,7 @@ libwayland-egl++.so.0.2 libwaylandpp-2.2.0_1 libwayland-client++.so.0.2 libwaylandpp-2.2.0_1 libwayland-cursor++.so.0.2 libwaylandpp-2.2.0_1 libwayland-client-extra++.so.0.2 libwaylandpp-2.2.0_1 +libxxhash.so.0 libxxHash-0.6.5_2 libfwup.so.1 libfwup-11_1 libcapnp_c.so.0 c-capnproto-0.3_1 libTKBin.so.7 occt-7.2.0p1_1 diff --git a/srcpkgs/libxxHash b/srcpkgs/libxxHash new file mode 120000 index 00000000000..77fd05cc090 --- /dev/null +++ b/srcpkgs/libxxHash @@ -0,0 +1 @@ +xxHash \ No newline at end of file diff --git a/srcpkgs/xxHash-devel b/srcpkgs/xxHash-devel new file mode 120000 index 00000000000..77fd05cc090 --- /dev/null +++ b/srcpkgs/xxHash-devel @@ -0,0 +1 @@ +xxHash \ No newline at end of file diff --git a/srcpkgs/xxHash/template b/srcpkgs/xxHash/template index 1b4d28388ce..0162859f7b6 100644 --- a/srcpkgs/xxHash/template +++ b/srcpkgs/xxHash/template @@ -1,7 +1,7 @@ # Template file for 'xxHash' pkgname=xxHash version=0.6.5 -revision=1 +revision=2 build_style=gnu-makefile short_desc="Fast non-cryptographic hashing algorithm" maintainer="Evan Deaubl " @@ -11,10 +11,23 @@ distfiles="https://github.com/Cyan4973/${pkgname}/archive/v${version}.tar.gz>xxh checksum=19030315f4fc1b4b2cdb9d7a317069a109f90e39d1fe4c9159b7aaa39030eb95 make_check_target="test" -do_install() { - vbin xxhsum - ln -s xxhsum ${DESTDIR}/usr/bin/xxh32sum - ln -s xxhsum ${DESTDIR}/usr/bin/xxh64sum - vman xxhsum.1 +post_install() { vlicense LICENSE } + +libxxHash_package() { + short_desc+=" - library" + pkg_install() { + vmove "usr/lib/*.so.*" + } +} + +xxHash-devel_package() { + short_desc+=" - development files" + depends="libxxHash>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.so" + vmove "usr/lib/*.a" + } +}