diff options
author | Joey Dumont | 2015-06-11 16:19:33 -0400 |
---|---|---|
committer | Joey Dumont | 2015-06-11 16:19:33 -0400 |
commit | 60217df6916470f51b365d0beb58f9a60bc6cc4a (patch) | |
tree | e429fc353bace1d4b470ce15f9fb1829e706c7ed /PKGBUILD | |
download | aur-60217df6916470f51b365d0beb58f9a60bc6cc4a.tar.gz |
Pushed package to AUR4.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a58fb4e3fc15 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Joey Dumont <joey.dumont@gmail.com> +pkgname=python2-scitools-git +pkgver=20150514 +pkgrel=1 +pkgdesc="python library for scientific computing, git version" +arch=(any) +url="https://github.com/hplgit/scitools" +license=('custom:BSD Simplified') +depends=('python2') +makedepends=('python2' 'python2-numpy' 'gnuplot' 'python2-gnuplot' 'mercurial') +optdepends=('python2-scipy' 'python2-scientificpython' 'vtk') +provides=('python2-scitools') +conflicts=('python2-scitools') +replaces=('python2-scitools-hg') +source=('git+https://github.com/hplgit/scitools.git') +md5sums=('SKIP') + +pkgver() { + # Identify latest version. + cd "$srcdir/scitools" + git log -1 --format="%cd" --date=short | sed 's|-||g' +} + +package() { + # Remove unwanted source folder. + rm -rf ${startdir}/scitools + + # Install the package. + cd "$srcdir/scitools" + python2 setup.py install --root=$pkgdir + + # Copy the license file. + mkdir -pv $startdir/pkg/$pkgname/usr/share/licenses/$pkgname + install -m644 $srcdir/scitools/LICENSE $pkgdir/usr/share/licenses/$pkgname/ +} + + |