summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD40
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..26143940aab
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = alan2-git
+ pkgdesc = An openbox menu builder.
+ pkgver = 2.0.0.1
+ pkgrel = 1
+ url = https://github.com/semplice/alan2
+ arch = i686
+ arch = x86_64
+ license = LGPL
+ depends = python2
+ provides = alan2-git
+ provides = alan2
+ conflicts = alan2-git
+ conflicts = alan2
+ source = alan2::git://github.com/semplice/alan2.git#branch=master
+ md5sums = SKIP
+
+pkgname = alan2-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..cc67b0b4d0b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*
+!.gitignore
+!PKGBUILD
+!.SRCINFO
+!*.install
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0f84199d9fe
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Gary DeLaney <gld1982ltd@gmail.com>
+
+_gitroot="git://github.com/semplice/alan2.git"
+_gitbranch=master
+_gitname=alan2
+
+pkgname="$_gitname-git"
+pkgver=2.0.0.1
+pkgrel=1
+pkgdesc="An openbox menu builder."
+arch=(i686 x86_64)
+url="https://github.com/semplice/alan2"
+license=('LGPL')
+groups=()
+depends=('python2')
+makedepends=('')
+provides=("${pkgname%}" "${pkgname%-git}")
+conflicts=("${pkgname%}" "${pkgname%-git}")
+replaces=()
+backup=()
+options=()
+install=
+source=("${_gitname}::${_gitroot}#branch=${_gitbranch}")
+noextract=()
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "%s" "$(git describe --abbrev=0 | sed 's/[A-Za-z]*//g;s/[!@#\$%^&*()/]//g;s/-/./g')"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ python2 setup.py build
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+}