summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12017-07-24 00:38:32 +0800
committerChocobo12017-07-24 00:56:08 +0800
commite22d0db2f2a8ac51240d27580779de71e68f6d87 (patch)
tree97ae39a3434ee8a02c1a8f08d6e464508d61933a
downloadaur-e22d0db2f2a8ac51240d27580779de71e68f6d87.tar.gz
newpkg: xxhash-git 0.6.0.r51.gd9e2c7b-1
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD42
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..0621d86949bb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = xxhash-git
+ pkgdesc = Extremely fast non-cryptographic hash algorithm
+ pkgver = 0.6.0.r51.gd9e2c7b
+ pkgrel = 1
+ url = https://cyan4973.github.io/xxHash/
+ arch = i686
+ arch = x86_64
+ license = BSD
+ checkdepends = valgrind
+ makedepends = git
+ depends = glibc
+ provides = xxhash
+ conflicts = xxhash
+ source = git+https://github.com/Cyan4973/xxHash.git
+ sha256sums = SKIP
+
+pkgname = xxhash-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..b27e9348b4d2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=xxhash-git
+pkgver=0.6.0.r51.gd9e2c7b
+pkgrel=1
+pkgdesc="Extremely fast non-cryptographic hash algorithm"
+arch=('i686' 'x86_64')
+url="https://cyan4973.github.io/xxHash/"
+license=('BSD')
+depends=('glibc')
+makedepends=('git')
+checkdepends=('valgrind')
+provides=('xxhash')
+conflicts=('xxhash')
+source=("git+https://github.com/Cyan4973/xxHash.git")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "xxHash"
+
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "xxHash"
+
+ make
+}
+
+check() {
+ cd "xxHash"
+
+ #make test
+}
+
+package() {
+ cd "xxHash"
+
+ make PREFIX="/usr" DESTDIR="$pkgdir" install
+ install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/xxhash/LICENSE"
+}