summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo J. S. Bellini2018-11-10 02:37:35 -0200
committerDanilo J. S. Bellini2018-11-10 02:37:35 -0200
commit7f708855f2aa91ba126898bcacccdcf72e3705c0 (patch)
tree16b531f9ea094cd44954b27e399180a33edbd801
downloadaur-7f708855f2aa91ba126898bcacccdcf72e3705c0.tar.gz
v4.4.0
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD27
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b101256c539
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = python-axelrod
+ pkgdesc = Research tool for the Iterated Prisoner's Dilemma
+ pkgver = 4.4.0
+ pkgrel = 1
+ url = https://github.com/Axelrod-Python/Axelrod
+ arch = any
+ license = MIT
+ makedepends = python-setuptools
+ depends = python-dask
+ depends = python-matplotlib
+ depends = python-numpy
+ depends = python-pandas
+ depends = python-prompt_toolkit
+ depends = python-scipy
+ depends = python-tqdm
+ options = !emptydirs
+ source = https://github.com/Axelrod-Python/Axelrod/archive/v4.4.0.tar.gz
+ sha256sums = 1f8f8386ab292877e9c063aa371e0d5709a969cce9cba828ee95567be1858c7e
+
+pkgname = python-axelrod
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cc49eb3ec06
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Danilo J. S. Bellini <danilo dot bellini at gmail dot com>
+pkgname=('python-axelrod')
+pkgver=4.4.0
+pkgrel=1
+pkgdesc="Research tool for the Iterated Prisoner's Dilemma"
+arch=('any')
+url='https://github.com/Axelrod-Python/Axelrod'
+license=('MIT')
+makedepends=('python-setuptools')
+depends=('python-dask'
+ 'python-matplotlib' 'python-numpy' 'python-pandas'
+ 'python-prompt_toolkit' 'python-scipy'
+ 'python-tqdm')
+options=(!emptydirs)
+sha256sums=('1f8f8386ab292877e9c063aa371e0d5709a969cce9cba828ee95567be1858c7e')
+source=("$url/archive/v$pkgver.tar.gz")
+
+prepare() {
+ # Avoid installing optional/unrequired dependencies
+ echo > "$srcdir/Axelrod-$pkgver/requirements.txt"
+}
+
+package() {
+ cd "$srcdir/Axelrod-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}