spacepaste

 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
# Maintainer: Thomas Kinnen <thomas.kinnen@gmail.com>
pkgname=unknown-horizons-git
_gitname="unknown-horizons"
pkgver=
pkgrel=2
pkgdesc="Open source real-time strategy with the comfy Anno1602 feeling"
arch=("i686" "x86_64")
url="http://www.unknown-horizons.org"
license=('GPL' 'CCPL')
depends=('fife-svn>=4091' 'python2' 'python2-yaml' 'python2-imaging')
makedepends=('git')
conflicts=('unknown-horizons-svn' 'unknown-horizons')
replaces=('unknown-horizons-svn' 'unknown-horizons')
source=("git://github.com/unknown-horizons/unknown-horizons.git")
md5sums=('SKIP')

pkgver() {
  cd "$pkgdir/$_gitname"
  git describe --always | sed 's/-/./g'
}

package() {
  cd "$pkgdir/$_gitname"
  python2 setup.py install --root="$pkgdir" --optimize=1
}