diff options
-rw-r--r-- | ~xihh/python2-pathtools/PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/~xihh/python2-pathtools/PKGBUILD b/~xihh/python2-pathtools/PKGBUILD new file mode 100644 index 000000000..ea1bddc28 --- /dev/null +++ b/~xihh/python2-pathtools/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Joshua Haase <hahj87@gmail.com> + +pkgname=python2-pathtools +pkgver=$(date -u +%Y%m%d) +pkgrel=1 +pkgdesc="Pattern matching and various utilities for file systems paths." +arch=('any') +url="https://github.com/gorakhargosh/pathtools" +license=('custom:MIT') +depends=('python2') +makedepends=('git') +options=(!emptydirs) + +_gitroot="git://github.com/gorakhargosh/pathtools.git" +_gitname="pathtools" + +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" "$_gitname" + fi + + msg "GIT checkout done or server timeout" + msg "Starting make..." + + rm -rf "$srcdir/${_gitname}-build" + git clone "$srcdir/${_gitname}" "$srcdir/${_gitname}-build" + +} + +package() { + cd "$srcdir/${_gitname}-build" + python2 setup.py install --root="$pkgdir/" --optimize=1 + + install -m 644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname" +} |