summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorArch-Jason2020-08-03 10:51:06 +0800
committerArch-Jason2020-08-03 10:51:06 +0800
commit9709a3262c4ca8f6611f1d0e4237a5946d70c21a (patch)
tree60673e4eae81dfdf3a5d856d3884427fd5b75903 /PKGBUILD
downloadaur-tminesweeper.tar.gz
version 1.0.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD26
1 files changed, 26 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..176f385c5fd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Arch-Jason <arch-jason@outlook.com>
+pkgname=tminesweeper
+pkgver=1.0.1
+pkgrel=1
+pkgdesc="Minesweeper game in terminal"
+arch=(any)
+url="https://github.com/langong-dev/tminesweeper"
+license=('MIT')
+depends=('bash')
+makedepends=('gcc' 'git')
+source=("git+$url")
+md5sums=('SKIP')
+
+build() {
+ cd "$pkgname/"
+ g++ main.cpp -o "$pkgname"
+}
+
+package() {
+ cd "$pkgname"
+ mkdir -p "$pkgdir/usr/bin"
+ mkdir -p "$pkgdir/usr/share/$pkgname"
+ cp "$pkgname" "$pkgdir/usr/bin"
+ chmod 755 "$pkgdir/usr/bin/$pkgname"
+ cp -r * "$pkgdir/usr/share/$pkgname"
+}