diff options
author | Bhanupong Petchlert | 2015-06-09 00:03:57 +0700 |
---|---|---|
committer | Bhanupong Petchlert | 2015-06-09 00:03:57 +0700 |
commit | 227f195fff0c6c0f94f03d1ce471ad5f1e3a0133 (patch) | |
tree | 3b5347ca30dbaab3228d7be0e4a66fe58990fec2 | |
download | aur-227f195fff0c6c0f94f03d1ce471ad5f1e3a0133.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..768025d8aa26 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = python-deap-git + pkgdesc = Distributed Evolutionary Algorithms in Python (GIT-version) + pkgver = 1.0.1.r1801.dd7bf38 + pkgrel = 1 + url = https://github.com/DEAP/deap + arch = any + license = LGPL + makedepends = git + depends = python + conflicts = python-deap + source = python-deap-git::git+https://github.com/DEAP/deap.git + md5sums = SKIP + +pkgname = python-deap-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7aafe83b819f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Bhanupong Petchlert <bpetlert@gmail.com> + +pkgname=python-deap-git +pkgver=1.0.1.r1801.dd7bf38 +pkgrel=1 +pkgdesc="Distributed Evolutionary Algorithms in Python (GIT-version)" +arch=('any') +url="https://github.com/DEAP/deap" +license=('LGPL') +depends=('python') +makedepends=('git') +conflicts=('python-deap') +provide=('python-deap') +source=("$pkgname::git+https://github.com/DEAP/deap.git") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgname" + tag=$(git describe --tags $(git rev-list --tags --max-count=1)) + printf "%s.r%s.%s" $tag "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$srcdir/$pkgname" + python setup.py install --root="$pkgdir/" --optimize=1 +} |