summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoey Dumont2015-06-11 16:19:33 -0400
committerJoey Dumont2015-06-11 16:19:33 -0400
commit60217df6916470f51b365d0beb58f9a60bc6cc4a (patch)
treee429fc353bace1d4b470ce15f9fb1829e706c7ed
downloadaur-python2-scitools-git.tar.gz
Pushed package to AUR4.
-rw-r--r--.SRCINFO24
-rw-r--r--.gitignore10
-rw-r--r--PKGBUILD37
3 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ff607c11d2b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = python2-scitools-git
+ pkgdesc = python library for scientific computing, git version
+ pkgver = 20150315
+ pkgrel = 2
+ url = https://github.com/hplgit/scitools
+ arch = any
+ license = custom:BSD Simplified
+ makedepends = python2
+ makedepends = python2-numpy
+ makedepends = gnuplot
+ makedepends = python2-gnuplot
+ makedepends = mercurial
+ depends = python2
+ optdepends = python2-scipy
+ optdepends = python2-scientificpython
+ optdepends = vtk
+ provides = python2-scitools
+ conflicts = python2-scitools
+ replaces = python2-scitools-hg
+ source = git+https://github.com/hplgit/scitools.git
+ md5sums = SKIP
+
+pkgname = python2-scitools-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..67f8c18f063
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,10 @@
+*.tar
+*.tar.*
+*.zip
+*.tgz
+*.log
+*.log.*
+*.sig
+*.jar
+pkg/
+src/ \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a58fb4e3fc1
--- /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/
+}
+
+