summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeo Galaxy2020-09-27 00:27:19 -0400
committerNeo Galaxy2020-09-27 00:27:19 -0400
commitc935d927c03e516ab40edf2eb18f5c9b3c5ae2eb (patch)
treef46c657e19f660915321c0ef9d23059dc6a00875
downloadaur-c935d927c03e516ab40edf2eb18f5c9b3c5ae2eb.tar.gz
Create first commit
-rw-r--r--.SRCINFO20
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD51
-rw-r--r--harmonist-tk.desktop8
4 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1c077b4e6f4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = harmonist
+ pkgdesc = A stealth coffee-break roguelike game.
+ pkgver = 0.3.0
+ pkgrel = 1
+ url = https://harmonist.tuxfamily.org/index.html
+ arch = x86_64
+ license = ISC
+ makedepends = go
+ depends = tk
+ source = https://download.tuxfamily.org/harmonist/releases/harmonist-0.3.0.tar.gz
+ source = harmonist-tk.desktop
+ sha256sums = 95a294ea9a3d96d81e6a137f72411cdf05e426d58b0c9b0267fceb83ff277099
+ sha256sums = 9c2fd2630d6db891b975c4ceb2eaa0be1d84af714f7506ca3df8e081f47d24f0
+
+pkgname = harmonist
+ depends = glibc
+
+pkgname = harmonist-tk
+ pkgdesc = A stealth coffee-break roguelike game. (Graphical version)
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..b0cc059d2d5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+/harmonist-*
+*.pkg.tar.*
+*.tar.gz
+/src
+/pkg
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9e175012424
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer: GalaxyLJGD <pentestian [at] airmail [dot] com>
+pkgname=('harmonist' 'harmonist-tk')
+pkgbase=harmonist
+pkgver=0.3.0
+pkgrel=1
+pkgdesc="A stealth coffee-break roguelike game."
+arch=('x86_64')
+url='https://harmonist.tuxfamily.org/index.html'
+license=('ISC')
+depends=('tk')
+makedepends=('go')
+source=("https://download.tuxfamily.org/harmonist/releases/harmonist-$pkgver.tar.gz"
+ 'harmonist-tk.desktop')
+sha256sums=('95a294ea9a3d96d81e6a137f72411cdf05e426d58b0c9b0267fceb83ff277099'
+ '9c2fd2630d6db891b975c4ceb2eaa0be1d84af714f7506ca3df8e081f47d24f0')
+
+prepare() {
+ mkdir -p "$srcdir/harmonist-$pkgver/build"
+}
+
+build() {
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS='-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw'
+ export GOPATH="$srcdir"
+
+ go get github.com/nsf/{gothic,termbox-go} github.com/mattn/go-runewidth
+
+ cd "$srcdir/harmonist-$pkgver"
+ go build -o build/harmonist ./...
+ go build -o build/harmonist-tk --tags tk ./...
+}
+
+package_harmonist() {
+ depends=('glibc')
+ cd "$srcdir/harmonist-$pkgver"
+ install -Dm644 harmonist.6 "$pkgdir/usr/share/man/man6/harmonist.6"
+ install -Dm755 build/harmonist "$pkgdir/usr/bin/harmonist"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_harmonist-tk() {
+ pkgdesc="$pkgdesc (Graphical version)"
+ cd "$srcdir/harmonist-$pkgver"
+ install -Dm644 harmonist.6 "$pkgdir/usr/share/man/man6/harmonist-tk.6"
+ install -Dm755 build/harmonist-tk "$pkgdir/usr/bin/harmonist-tk"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 "$srcdir/harmonist-tk.desktop" "$pkgdir/usr/share/applications/harmonist-tk.desktop"
+}
diff --git a/harmonist-tk.desktop b/harmonist-tk.desktop
new file mode 100644
index 00000000000..6f2bb132a60
--- /dev/null
+++ b/harmonist-tk.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Encoding=UTF-8
+Version=1.0
+Type=Application
+Name=Harmonist
+Comment=A stealth coffee-break roguelike game.
+Exec=/usr/bin/harmonist-tk
+Categories=Game;AdventureGame