summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c3dd4c8b247
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Christos Nouskas <nous at archlinux.us>
+
+pkgname=fu-git
+pkgver=r35.47c0867
+pkgrel=1
+pkgdesc="A simple python2 tool for querying commandlinefu.com"
+url="https://github.com/samirahmed/fu"
+arch=(any)
+license=('MIT')
+depends=('python2')
+makedepends=('git' 'python2-setuptools')
+_gitroot="git+https://github.com/samirahmed"
+_gitname="fu"
+source=(${_gitname}::${_gitroot}/${_gitname}.git)
+sha256sums=(SKIP)
+
+pkgver() {
+ cd "${srcdir}/${_gitname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd "${srcdir}/${_gitname}"
+ python2 setup.py -q install --root="${pkgdir}" --optimize=1
+}