diff --git a/dev-libs/xxhash-0.8.3.PKGBUILD b/dev-libs/xxhash-0.8.3.PKGBUILD new file mode 100644 index 0000000..d9f0263 --- /dev/null +++ b/dev-libs/xxhash-0.8.3.PKGBUILD @@ -0,0 +1,25 @@ +pkgname=xxhash +pkgver=0.8.3 +pkgdesc='Extremely fast non-cryptographic hash algorithm' +arch=(x86_64) +homepage=https://cyan4973.github.io/xxHash/ +license=( + GPL2 + BSD +) +sources=("${pkgname}-${pkgver}.tar.gz") +urls=("https://github.com/Cyan4973/xxHash/archive/refs/tags/v${pkgver}.tar.gz") +md5sums=("599804eb9555e51c05f1b821f9212a07") + +src_prepare() { + tar -xf ${distdir}/${sources[0]} --strip-components=1 +} + +src_build() { + make PREFIX=/usr +} + +src_install() { + make PREFIX=/usr DESTDIR="${pkgdir}" install + install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/xxhash +}