blob: 176f385c5fd081ed515a92f5292ce1aa4691d3fe (
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: 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"
}
|