summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eee73a82b233a4a94abd7a071ea7c3e05320821e (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
# Maintainer: Alexander Bus <busfromrus@gmail.com>

pkgname=szsol-git
pkgver=r52.c5965d8
pkgrel=1
pkgdesc="ncurses clone of Shenzhen Solitaire, ПАСЬЯНС and Kabufuda Solitaire"
arch=('any')
url="https://github.com/usrshare/szsol"
license=('MIT')
makedepends=('git' 'ncurses')
source=('git+https://github.com/usrshare/szsol')
sha256sums=('SKIP')

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

build() {
  cd "$srcdir/szsol"
  make
}

package() {
  install -Dm755 "$srcdir/szsol/szsol" "$pkgdir/usr/bin/szsol"
  install -Dm755 "$srcdir/szsol/exasol" "$pkgdir/usr/bin/exasol"
  install -Dm755 "$srcdir/szsol/kabusol" "$pkgdir/usr/bin/kabusol"
  install -Dm644 $srcdir/szsol/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}