summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2015-04-28 00:00:00 +0300
committerYuval Adam <yuval@y3xz.com>2015-04-28 00:00:00 +0300
commit9eddead39d37e2f42394786cec79fe3acefea83d (patch)
treef7cafd9011f8a66f54988da9614b7dd57a1f6a2f
Add disque-git
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD32
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..c92bc33
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = disque-git
+ pkgdesc = Distributed message broker
+ pkgver = d01f47d
+ pkgrel = 1
+ url = https://github.com/antirez/disque
+ arch = any
+ license = MIT
+ provides = disque
+ source = disque-git::git+https://github.com/antirez/disque
+ sha1sums = SKIP
+
+pkgname = disque-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..5767fea
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Yuval Adam <yuval at y3xz dot com> PGP-Key: 271386AA2EB7672F
+
+pkgname=disque-git
+pkgver=d01f47d
+pkgrel=1
+pkgdesc="Distributed message broker"
+arch=('any')
+url="https://github.com/antirez/disque"
+license=(MIT)
+depends=('')
+makedepends=()
+provides=('disque')
+source=("$pkgname::git+$url")
+sha1sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+ echo $(git describe --always | sed 's/-/./g')
+}
+
+build() {
+ cd "$pkgname"
+ make
+}
+
+package() {
+ cd "$pkgname"
+ install -Dm755 ${srcdir}/${pkgname}/src/disque ${pkgdir}/usr/bin/disque
+ install -Dm755 ${srcdir}/${pkgname}/src/disque-server ${pkgdir}/usr/bin/disque-server
+}
+
+# vim:set ts=2 sw=2 et: