summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f32feaa01b7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Pranay Kanwar <pranay.kanwar@gmail.com>
+_pkgname=beanstalk-client
+pkgname=$_pkgname-git
+pkgver=r119.d012ba8
+pkgrel=1
+pkgdesc='C/C++ beanstalkd client that is blocking by default.'
+arch=('x86_64')
+url='https://github.com/deepfryed/beanstalk-client'
+license=('MIT')
+makedepends=('gcc' 'git')
+provides=('beanstalk-client')
+conflicts=('beanstalk-client')
+source=("${pkgname}"::"git+https://github.com/deepfryed/beanstalk-client.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${srcdir}/${pkgname}"
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+ make DESTDIR="$pkgdir/" install
+}
+