summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bbe012bd55c2ba04db1da9daf65bed570b9e12d8 (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
# Maintainer: Jozef Riha <jose1711 at gmail dot com>

pkgname=gwcd-git
pkgdesc="Whereigo files (.gwc) decompiler (git)"
pkgver=r8.c139886
pkgrel=1
arch=('i686' 'x86_64')
url="https://github.com/driquet/gwcd"
license=('custom')
depends=('python')
makedepends=('git')
source=("${pkgname}"::'git+https://github.com/driquet/gwcd.git' 'gwcd')
md5sums=('SKIP'
         'e21172d23a5cc196684fda686b8679ee')

pkgver() {
  cd "$srcdir/${pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  mkdir -p ${pkgdir}/usr/share/{doc/gwcd,gwcd,licenses/gwcd}
  install -Dm644 $srcdir/${pkgname}/gwcd.py ${pkgdir}/usr/share/gwcd
  install -Dm644 $srcdir/${pkgname}/reader.py ${pkgdir}/usr/share/gwcd
  install -Dm755 $srcdir/gwcd $pkgdir/usr/bin/gwcd
  install -Dm644 $srcdir/${pkgname}/README.rst $pkgdir/usr/share/doc/gwcd
  install -Dm644 $srcdir/${pkgname}/LICENCE $pkgdir/usr/share/licenses/gwcd
}