summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 575a70684ee53137051b8681125bb126bf646902 (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
# Maintainer: zhullyb <zhullyb@outlook.com>

pkgname=bash2048-git
pkgver=1.0.r14.g37da521
pkgrel=1
pkgdesc="Bash implementation of 2048 game"
url="https://github.com/mydzor/bash2048"
arch=('any')
license=("Unlicense")
depends=()
provides=('bash2048')
source=("git+https://github.com/mydzor/bash2048.git")

md5sums=('SKIP')

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

package() {
  cd $srcdir/bash2048
  install -D -m 755 bash2048.sh "$pkgdir/usr/bin/bash2048"
  install -D -m 644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}