diff options
author | Jonathan Knapp | 2021-08-11 09:56:52 -0700 |
---|---|---|
committer | Jonathan Knapp | 2021-08-11 10:06:17 -0700 |
commit | 7d9761a143b0e5512d7da13cf3e306833f0d7c5c (patch) | |
tree | 650d66160dfcd0adf0ba5bfffd192ca66d1a5e78 /PKGBUILD | |
parent | 2b9acea2078bcb30df7fb9284972422a08b2646b (diff) | |
download | aur-7d9761a143b0e5512d7da13cf3e306833f0d7c5c.tar.gz |
Added tiles package
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -2,7 +2,7 @@ # URL: https://github.com/anaseto/boohu # Upstream: https://github.com/anaseto/boohu -pkgname=('boohu-git') +pkgname=('boohu-git' 'boohu-tk-git') pkgver=0.13.0.5.g9103191 pkgrel=1 pkgdesc="Break Out Of Hareka's Underground, a roguelike game." @@ -23,16 +23,23 @@ pkgver() { prepare() { cd "$pkgname" - go mod init "${url#https://}" # strip https:// from canonical URL + # strip https:// from canonical URL + go mod init "${url#https://}" || echo 'already modded' go mod tidy } build() { cd "$pkgname" go build -o boohu . + go build --tags tk -o boohu-tk . } -package() { +package_boohu-git() { install -Dm 755 "$srcdir/$pkgname/boohu" -t "$pkgdir/usr/bin"; install -Dm 644 "$srcdir/$pkgname/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname" } + +package_boohu-tk-git() { + install -Dm 755 "$srcdir/boohu-git/boohu-tk" -t "$pkgdir/usr/bin"; + install -Dm 644 "$srcdir/boohu-git/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname" +} |