summaryrefslogtreecommitdiff
path: root/pcr/pivaders-git/PKGBUILD
blob: 04561004f0c21d8fb7c94e8d7fe0f53a6cfeaf69 (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
# Contributor: Arthur Zamarin <arthurzam@gmail.com> 
# Maintainer: Aurélien Desbrières <aurelien@hackers.camp>

_pkgname=pivaders
pkgname=pivaders-git
pkgver=0.2.r1.g5bffd90
pkgrel=1
pkgdesc="Space Invaders game"
arch=('any')
url="https://github.com/russb78/${_pkgname}"
license=('GPL2')
depends=('python' 'python2-pygame')
conflicts=('pivaders')
source=("${_pkgname}::git+git://github.com/russb78/${_pkgname}.git"
        "${_pkgname}.sh")
sha1sums=('SKIP'
          '60183ae638d48bc5493eb318e54fb61a6454cfa3')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}
 
package() {
  install -Dm755 "${srcdir}/${_pkgname}.sh" ${pkgdir}/usr/bin/${_pkgname}
  mkdir -p ${pkgdir}/usr/share/${_pkgname}
  cp -r ${srcdir}/${_pkgname}/${_pkgname}/* ${pkgdir}/usr/share/${_pkgname}/
}