summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Gahde2020-03-10 01:28:25 +0100
committerJakob Gahde2020-03-10 01:28:25 +0100
commit730c6fd2dc5147fe5c11b40a93ab6f5fc8761469 (patch)
treeab0d7b0225860d1b03e3b9b149c2fde10d247283
downloadaur-zeroskip-git.tar.gz
zeroskip-git r354.1945d64-1: Create new package
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD47
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a5f3d1ce2ee
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = zeroskip-git
+ pkgdesc = A key-value database library
+ pkgver = r354.1945d64
+ pkgrel = 1
+ url = https://github.com/cyrusimap/zeroskip
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = check
+ depends = zlib
+ depends = libutil-linux
+ provides = zeroskip=r354.1945d64
+ conflicts = zeroskip
+ source = git+https://github.com/cyrusimap/zeroskip.git
+ sha512sums = SKIP
+
+pkgname = zeroskip-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7b19aa301d9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Jakob Gahde <j5lx@fmail.co.uk>
+
+pkgname=zeroskip-git
+pkgver=r354.1945d64
+pkgrel=1
+pkgdesc="A key-value database library"
+arch=('x86_64')
+url="https://github.com/cyrusimap/zeroskip"
+license=('MIT')
+depends=('zlib' 'libutil-linux')
+makedepends=('git' 'check')
+provides=("zeroskip=${pkgver}")
+conflicts=("zeroskip")
+source=("git+https://github.com/cyrusimap/zeroskip.git")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/zeroskip"
+
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "${srcdir}/zeroskip"
+
+ autoreconf -i
+}
+
+build() {
+ cd "${srcdir}/zeroskip"
+
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd "${srcdir}/zeroskip"
+
+ make check
+}
+
+package() {
+ cd "${srcdir}/zeroskip"
+
+ make install DESTDIR="${pkgdir}"
+ install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}