diff options
author | Dan Johansen | 2024-04-03 18:02:55 +0200 |
---|---|---|
committer | Dan Johansen | 2024-04-03 18:02:55 +0200 |
commit | 01abfdc8f8f9fd8ed95eb5d2165a8e2d6c46b57b (patch) | |
tree | 1554cdb700c34e74edf9ff0434b87434d100eb92 | |
download | aur-01abfdc8f8f9fd8ed95eb5d2165a8e2d6c46b57b.tar.gz |
initial commit, version 0.1.0
Signed-off-by: Dan Johansen <strit@strits.dk>
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 67 | ||||
-rw-r--r-- | tui-mines.install | 6 |
3 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..77f3da1ce26c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = tui-mines + pkgdesc = A text-based user interface implimentation of the classic mine sweeping puzzle game + pkgver = 0.1.0 + pkgrel = 1 + url = https://gitlab.com/christosangel/tui-mines + install = tui-mines.install + arch = any + license = GPL2-or-later + depends = bash + depends = ttf-font-nerd + source = tui-mines-0.1.0.tar.gz::https://gitlab.com/christosangel/tui-mines/-/archive/0.1.0/tui-mines-0.1.0.tar.gz + sha256sums = 7b429cf1bb4f3841c36ce6165d173de7e68bcbd815d59d2182b1b00934c66338 + +pkgname = tui-mines diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..98d95348c1ff --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,67 @@ +# Maintainer: Dan Johansen <strit@strits.dk> + +pkgname=tui-mines +pkgver=0.1.0 +pkgrel=1 +pkgdesc="A text-based user interface implimentation of the classic mine sweeping puzzle game" +arch=('any') +url="https://gitlab.com/christosangel/$pkgname" +license=('GPL2-or-later') +depends=('bash' 'ttf-font-nerd') +install=$pkgname.install +source=("$pkgname-$pkgver.tar.gz::$url/-/archive/$pkgver/$pkgname-$pkgver.tar.gz") +sha256sums=('7b429cf1bb4f3841c36ce6165d173de7e68bcbd815d59d2182b1b00934c66338') + +prepare() { + cd "$pkgname-$pkgver" + echo -e "#Width of the matrix +WIDTH=10 +#Width of the matrix +HEIGHT=10 + +#Number of mines in the matrix +MINES_QUANTITY=10 + +#Text editor to open config file +PREFERRED_EDITOR=${EDITOR-nano} + +#Acceptable notification togle values: yes / no +NOTIFICATION_TOGGLE=yes + +#Acceptable notification toggle values: yes / no. This can also be controlled while playing +CHEATSHEET_TOGGLE=yes + +#Color output. Acceptable notification toggle values: yes / no. +COLOR_TOGGLE=yes + +#Blink effect toggle. Acceptable notification toggle values: yes / no. +BLINK_TOGGLE=yes + +#Key binding to flag squares. Non acceptable values: Upper-case,q,i, arrow keys, navigation key-bindings. +FLAG_BIND=f + +#Key binding to reveal squares. Spacebar is hardcoded, also. Non acceptable values: Upper-case,q,i, arrow keys, navigation key-bindings. +REVEAL_BIND=r + +# Key binding for quick solving around squares with adequately flagged squares around them. Non acceptable values: Upper-case,q,i, arrow keys, navigation key-bindings. +QUICK_SOLVE_BIND=e + +# Character (simple or nerd-font) to represent the MINE. +# Suggestions:,🕱,☢,☠,,,,,,,,*,A-Z +MINE_CHAR= + +# Character (simple or nerd-font) to represent the FLAGGED SQUARE. +# Suggestions:,,,,,,,,,,,,,!,#,A-Z +FLAG_CHAR= + +#Acceptable values for navigation keys: vim, aswd. Arrow keys are hardcoded and work in all options. +NAVIGATION_KEYS=vim">$pkgname.config +} + +package() { + cd "$pkgname-$pkgver" + mkdir -p "$pkgdir/usr/share/$pkgname" + install -Dm644 $pkgname.png "$pkgdir/usr/share/$pkgname/$pkgname.png" + install -Dm644 $pkgname.config "$pkgdir/etc/$pkgname.config" + install -Dm755 $pkgname.sh "$pkgdir/usr/bin/$pkgname" +} diff --git a/tui-mines.install b/tui-mines.install new file mode 100644 index 000000000000..e880eea4361a --- /dev/null +++ b/tui-mines.install @@ -0,0 +1,6 @@ +post_install() { + ## copy in required files. The script does not copy these over. + echo "For tui-mines to function properly, you need to run these commands:" + echo "cp /etc/tui-mines.config ~/.config/tui-mines/tui-mines.config" + echo "cp -r /usr/share/tui-mines/tui-mines.png ~/.cache/tui-mines/" +} |