summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..af9ed2359a8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Chris Down <chris@chrisdown.name>
+
+pkgname=clipmenu-git
+_gitname=clipmenu
+pkgver=5.6.0.r9.ga495bcc
+pkgrel=1
+pkgdesc='Clipboard management using dmenu'
+url='http://github.com/cdown/clipmenu'
+arch=('any')
+license=('Public Domain')
+depends=(dmenu xsel clipnotify)
+provides=(clipmenu)
+conflicts=(clipmenu)
+makedepends=(git)
+
+source=(git://github.com/cdown/clipmenu.git)
+md5sums=(SKIP)
+
+pkgver() {
+ cd "$_gitname"
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+package() {
+ install -D -m755 \
+ "${srcdir?}/$_gitname/clipmenu" \
+ "${pkgdir?}/usr/bin/clipmenu"
+ install -D -m755 \
+ "${srcdir?}/$_gitname/clipmenud" \
+ "${pkgdir?}/usr/bin/clipmenud"
+ install -D -m755 \
+ "${srcdir?}/$_gitname/clipdel" \
+ "${pkgdir?}/usr/bin/clipdel"
+ install -D -m644 \
+ "${srcdir?}/$_gitname/init/clipmenud.service" \
+ "${pkgdir?}/usr/lib/systemd/user/clipmenud.service"
+}