diff options
Diffstat (limited to 'parched-git/PKGBUILD')
-rw-r--r-- | parched-git/PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/parched-git/PKGBUILD b/parched-git/PKGBUILD new file mode 100644 index 0000000..1ba775f --- /dev/null +++ b/parched-git/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Laszlo Papp <djszapi at archlinux dot us> + +pkgname=parched-git +pkgver=20100107 +pkgrel=1 +pkgdesc="A Pacman package and PKGBUILD parser module" +arch=('i686' 'x86_64') +url="http://github.com/sebnow/parched" +license=('MIT') +depends=('git' 'python') +source=(LICENSE) +md5sums=('31eccf56949504b5ce33110068948cf2') + +_gitroot="git://github.com/sebnow/parched.git" +_gitname="parched" + +build() { + cd "$srcdir" + msg "Connecting to the parched git repository..." + + if [ -d "$srcdir/$_gitname" ] ; then + cd $_gitname && git pull origin + msg "The local files are updated." + else + git clone $_gitroot + fi + + msg "GIT checkout done or server timeout" + msg "Starting make..." + + cd $srcdir/$_gitname + python setup.py build || return 1 + python setup.py install --root=$pkgdir --optimize=1 || return 1 + install -D -m644 ../LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} |