summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e6d31455965
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Paul Pletenev <cpp.create@gmail.com>
+# Contributor: Ricardo Liang (rliang) <ricardoliang@gmail.com>
+
+pkgname=gdmenu
+pkgver=r18.d0b9dfc
+pkgrel=1
+pkgdesc="GTK+ dmenu clone"
+arch=('i686' 'x86_64')
+url="https://github.com/rliang/gdmenu"
+license=('MIT')
+depends=('gtk3')
+makedepends=('git')
+conflicts=('gdmenu')
+provides=('gdmenu')
+source=('git+https://github.com/rliang/gdmenu.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+ # Use the tag of the last commit
+ #git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$pkgname"
+ unset LDFLAGS
+ make
+}
+
+package() {
+ cd "$pkgname"
+ make PREFIX=$pkgdir/usr/ install
+}