summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d4f76dc6554e71f5dcf7dcdfd80d0b0f0a1b515b (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
pkgname=szsol-git
pkgver=r39.1c5872a
pkgrel=1
pkgdesc="ncurses clone of Shenzhen Solitaire card game"
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"
  sed -i 's/ncursesw5-config/ncursesw6-config/' Makefile
  make
}

package() {
  # cd "$srcdir/szsol"
  mkdir -p "$pkgdir/usr/bin"
  cp "$srcdir/szsol/szsol" "$pkgdir/usr/bin"
  install -Dm644 $srcdir/szsol/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}