xxHash: add devel and library subpackages

This commit is contained in:
John Zimmermann 2018-09-27 20:27:34 +02:00 committed by cr6git
parent db6049b25a
commit 09436b7275
4 changed files with 22 additions and 6 deletions

View file

@ -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-client++.so.0.2 libwaylandpp-2.2.0_1
libwayland-cursor++.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 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 libfwup.so.1 libfwup-11_1
libcapnp_c.so.0 c-capnproto-0.3_1 libcapnp_c.so.0 c-capnproto-0.3_1
libTKBin.so.7 occt-7.2.0p1_1 libTKBin.so.7 occt-7.2.0p1_1

1
srcpkgs/libxxHash Symbolic link
View file

@ -0,0 +1 @@
xxHash

1
srcpkgs/xxHash-devel Symbolic link
View file

@ -0,0 +1 @@
xxHash

View file

@ -1,7 +1,7 @@
# Template file for 'xxHash' # Template file for 'xxHash'
pkgname=xxHash pkgname=xxHash
version=0.6.5 version=0.6.5
revision=1 revision=2
build_style=gnu-makefile build_style=gnu-makefile
short_desc="Fast non-cryptographic hashing algorithm" short_desc="Fast non-cryptographic hashing algorithm"
maintainer="Evan Deaubl <evan@deaubl.name>" maintainer="Evan Deaubl <evan@deaubl.name>"
@ -11,10 +11,23 @@ distfiles="https://github.com/Cyan4973/${pkgname}/archive/v${version}.tar.gz>xxh
checksum=19030315f4fc1b4b2cdb9d7a317069a109f90e39d1fe4c9159b7aaa39030eb95 checksum=19030315f4fc1b4b2cdb9d7a317069a109f90e39d1fe4c9159b7aaa39030eb95
make_check_target="test" make_check_target="test"
do_install() { post_install() {
vbin xxhsum
ln -s xxhsum ${DESTDIR}/usr/bin/xxh32sum
ln -s xxhsum ${DESTDIR}/usr/bin/xxh64sum
vman xxhsum.1
vlicense LICENSE 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"
}
}