diff options
author | Jan Oliver Oelerich | 2015-06-09 08:49:44 +0200 |
---|---|---|
committer | Jan Oliver Oelerich | 2015-06-09 08:49:44 +0200 |
commit | 42f74ba29357758fd590432c16a56b3ad65c7687 (patch) | |
tree | 54fedc317c77ba31885286d14757f07d465cd1d3 | |
download | aur-42f74ba29357758fd590432c16a56b3ad65c7687.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1ad0182a1fac --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = uwsgitop-git + pkgdesc = uWSGI stats viewer + pkgver = 20130415 + pkgrel = 1 + url = http://github.com/unbit/uwsgitop.git + arch = i686 + arch = x86_64 + license = GPL + makedepends = git + makedepends = python2-distribute + depends = python2 + +pkgname = uwsgitop-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6f4f29534bd8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Jan Oliver Oelerich <janoliver@oelerich.org> +pkgname=uwsgitop-git +pkgver=20130415 +pkgrel=1 +pkgdesc="uWSGI stats viewer" +arch=('i686' 'x86_64') +url="http://github.com/unbit/uwsgitop.git" +license=('GPL') +depends=('python2') +conflicts=('') +makedepends=('git' 'python2-distribute') + +_gitroot="https://github.com/unbit/uwsgitop.git" +_gitname="uwsgitop" + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [ -d $_gitname ] ; then + cd $_gitname && git pull origin + msg "The local files are updated." + else + git clone $_gitroot + cd $_gitname + fi + + msg "GIT checkout done or server timeout" +} + +package() { + cd "$srcdir/$_gitname" + sed -i "s|#\!python|#\!/usr/bin/python2|" uwsgitop + chmod +x uwsgitop + python2 setup.py install --prefix=/usr --root="$pkgdir" +} |