diff options
author | Stefan Seemayer | 2015-07-06 10:11:50 +0200 |
---|---|---|
committer | Stefan Seemayer | 2015-07-06 10:11:50 +0200 |
commit | b4c645f7df9cd9a6a8551c5b55f4a99a62bf3d4b (patch) | |
tree | 89a457f2b30d5db0e26d4a4df7fb1b7c6b6dd926 /PKGBUILD | |
download | aur-b4c645f7df9cd9a6a8551c5b55f4a99a62bf3d4b.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..22b07218ce00 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Stefan Seemayer <mail@semicolonsoftware.de> +pkgname=python2-pysvmlight-hg +pkgver=20130415 +pkgrel=1 +pkgdesc="A Python binding to the SVMlight support vector machine library by Thorsten Joachims" +arch=("i686" "x86_64") +url="https://bitbucket.org/wcauchois/pysvmlight" +license=('unknown') +makedepends=('mercurial') +depends=('python2') + +_hgroot=ssh://hg@bitbucket.org/wcauchois/pysvmlight +_hgrepo=pysvmlight + +build() { + cd "$srcdir" + msg "Connecting to Mercurial server...." + + if [[ -d "$_hgrepo" ]]; then + cd "$_hgrepo" + hg pull -u + msg "The local files are updated." + else + hg clone "$_hgroot" "$_hgrepo" + fi + + msg "Mercurial checkout done or server timeout" + msg "Starting build..." + + rm -rf "$srcdir/$_hgrepo-build" + cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build" + cd "$srcdir/$_hgrepo-build" + +} + +package() { + cd "$srcdir/$_hgrepo-build" + python2 setup.py install --root="$pkgdir/" --optimize=1 +} + +# vim:set ts=2 sw=2 et: |