summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f97d318857b5a6b16c2c7703e581d818e37f180a (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
32
33
34
35
36
37
# Maintainer: rho <rho.rhoit@gmail.com>

pkgname=parity-puzzle-git
pkgver=0.99
pkgrel=1
pkgdesc="A bash implementation of parity puzzle game"
arch=('any')
url="https://github.com/rhoit/parity"
license=('MIT')
depends=('bash' 'sed')
optdepends=('figlet')
makedepends=('git')
source=('git+https://github.com/rhoit/parity.git')
md5sums=('SKIP')
_gitname="parity"

prepare() {
  cd $_gitname
  git submodule init
  git submodule update
}

pkgver() {
  cd "$srcdir/$_gitname"
  git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/$_gitname"
  git describe --tags > .version
}

package() {
  cd $_gitname
  mkdir -p "$pkgdir/usr/local/bin"
  DESTDIR="$pkgdir" make install
}