summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e6ec290439743a3f8a7921c1f6146ae3f6fedfec (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
# Maintainer: twa022 <twa022 at gmail dot com>
# Contributor: jsteel <mail at jsteel dot org>
# Contributor: Erdbeerkaese
# Contributor: Arkham <arkham at archlinux dot us>

_pkgname=slingshot
pkgname=${_pkgname}-python3
epoch=1
pkgver=0.9+5+g243aef9
pkgrel=1
pkgdesc="A 2D strategy game in the gravity fields of several planets (python3 port)"
arch=('any')
url="https://github.com/indritbashkimi/slingshot"
license=('GPL')
depends=('python-pygame' 'python-docopt')
makedepends=('python-distutils-extra' 'git')
conflicts=("${_pkgname}")
provides=("${_pkgname}=${pkgver}")
source=("${_pkgname}::git+https://github.com/indritbashkimi/slingshot.git#branch=python3")
sha256sums=('SKIP')

pkgver() {
  cd "${_pkgname}"
  git describe --long --tags | sed "s/-/+/g"
}

package() {
  cd "${_pkgname}"
  python setup.py install --prefix=/usr --root="${pkgdir}" \
  		--no-compile -O0
}