blob: f41a2a350cea9e4298365e4c22955ba4ee687a27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Benoit Brummer <trougnouf at gmail dot com>
pkgname='mabe-git'
pkgver=r309.0bfe32b
pkgrel=1
pkgdesc='Modular Agent Based Evolution Framework'
url='https://github.com/Hintzelab/MABE'
depends=()
makedepends=('python' 'git' 'gcc')
license=('GPL3')
arch=('i686' 'x86_64')
source=(git+"${url}.git")
sha256sums=('SKIP')
pkgver() {
cd MABE
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "${srcdir}/MABE"
sed -i 's/-/+/g' buildOptions.txt
sed -i 's~"World/NumeralClassifierWorld/mnist.train.discrete.28x28-only100"~"/usr/share/MABE/World/NumeralClassifierWorld/mnist.train.discrete.28x28-only100"~g' World/NumeralClassifierWorld/NumeralClassifierWorld.cpp
sed -i 's~"World/SOFWorld/scoreMap_20x20_2peaks.txt"~"/usr/share/MABE/World/SOFWorld/scoreMap_20x20_2peaks.txt"~g' World/SOFWorld/SOFWorld.cpp
python "PythonTools/MBuild.py"
}
package() {
mkdir -p "${pkgdir}/usr/bin"
cp "${srcdir}/MABE/MABE" "${pkgdir}/usr/bin"
mkdir -p "${pkgdir}/usr/share/MABE/World/NumeralClassifierWorld"
cp "${srcdir}/MABE/World/NumeralClassifierWorld/mnist.train.discrete.28x28-only100" "${pkgdir}/usr/share/MABE/World/NumeralClassifierWorld"
cp "${srcdir}/MABE/World/NumeralClassifierWorld/mnist.train.subset.discrete.28x28" "${pkgdir}/usr/share/MABE/World/NumeralClassifierWorld"
mkdir -p "${pkgdir}/usr/share/MABE/World/SOFWorld"
cp "${srcdir}/MABE/World/SOFWorld/scoreMap_20x20_2peaks.txt" "${pkgdir}/usr/share/MABE/World/SOFWorld"
cp "${srcdir}/MABE/World/SOFWorld/scoreMap_100x100_smallANDlarge.txt" "${pkgdir}/usr/share/MABE/World/SOFWorld"
}
|