# 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.0b1 _musicver=025e2696638bcc3bf7690679c3a17c0b46823bbe pkgrel=1 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=('e324c4eda0f65b0099675f0470564831b01f81362760639bb274d95379b8a9fb1d8ed8d6e38bf95d8822678041f2a11a48bb8fdd3bc90f29d56ef85c348193f1' 'SKIP' '328988697e6a630b7640fa2076fa53ffe5a7c4a3fe4772de6c2ffc4ece3081de4bb57de51159b3ad51f2e54bf796d3775bc40a802e43315aec7767630f8e580f' 'fcdd0feef0f26ca623baaf748932a75e0165e0e6941cf62507664cb953a7b1a22b7ee0b55302d45ebaeeffc460d82ab5c043c4ef0b9823fe0174e34805fe7d78') 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 }