# Maintainer: jc_gargma # Maintainer (Arch): Sven-Hendrik Haase # Contributor (Arch): Lone_Wolf # Contributor (Arch): sausageandeggs # # I maintain this because: # Arch version desktop file points to raw executable # Arch version does not name the music archive pkgname=singularity pkgver=1.00 _musicver=025e2696638bcc3bf7690679c3a17c0b46823bbe pkgrel=3 pkgdesc="Endgame: Singularity - simulation of true AI" arch=('any') url="http://emhsoft.com/singularity/index.html" license=('GPL2' 'custom') depends=('python' 'python-pygame' 'python-numpy') makedepends=('python-setuptools') source=("https://github.com/singularity/singularity/releases/download/v${pkgver}/singularity-${pkgver}.tar.gz"{,.asc} singularity-music-${_musicver}.tar.gz::https://github.com/singularity/singularity-music/archive/${_musicver}.tar.gz "singularity.desktop") validpgpkeys=('B3131A451DBFDF7CA05B4197054BBB9F7D806442') b2sums=('1ca2b120311a19f175014835930610583e8f605dbda3ca3ca96d7e0da86bddeb4b0a264f50a003aa51e05b86ce971255ffda5f498598dde6be370b9a953eb1d0' 'SKIP' '328988697e6a630b7640fa2076fa53ffe5a7c4a3fe4772de6c2ffc4ece3081de4bb57de51159b3ad51f2e54bf796d3775bc40a802e43315aec7767630f8e580f' 'd80af4c1651bf719b60ff9db0f2d96ca1507e59c4e3291ba7589e73158fe638bb3f86bc1b6f805e66c89d01959cff5636a6256dc7e80952676322ac0cdf0ee2b') prepare() { cd "$pkgname-$pkgver" mv "$srcdir"/singularity-music-${_musicver} singularity/music sed -i "s|prune|recursive-include singularity/music *|g" MANIFEST.in } build() { cd "$pkgname-$pkgver" python setup.py build } package() { cd "$pkgname-$pkgver" python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 mv run_singularity.sh "$pkgdir"/usr/bin/singularity install -Dm644 "$srcdir/singularity.desktop" "$pkgdir/usr/share/applications/singularity.desktop" install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE.cc0.txt LICENSE.CC-BY-SA-3.txt LICENSE.gpl.txt LICENSE.txt }