summaryrefslogtreecommitdiff
path: root/pcr/pivaders-git/PKGBUILD
blob: 0bee35d236917c6164f1afb0421253898e56476e (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 (Arch)     : Arthur Zamarin <arthurzam@gmail.com> 
# Maintainer  (Parabola) : 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}/
}