blob: c90cf271b17a2af8e4c14e4311a1461c88e74de4 (
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
27
28
29
|
# Maintainer: Marcin Mielniczuk <marmistrz.dev@zoho.eu>
pkgname=graphwar
pkgver=1.0.0
pkgrel=1
pkgdesc="Hit your enemies using mathematical functions"
arch=(x86_64 i686)
url="https://github.com/catabriga/graphwar"
license=('GPLv3')
depends=('java-runtime')
makedepends=('git')
source=("git+https://github.com/catabriga/graphwar.git#tag=1.0.0")
sha1sums=("SKIP")
build() {
cd graphwar
make
}
package() {
cd graphwar
dest="$pkgdir/usr/share/games/graphwar/"
mkdir -p "$dest"
cp -r "graphwar.jar" "$dest"
mkdir -p "$pkgdir/usr/bin"
echo -e "#!/bin/sh\njava -jar /usr/share/games/graphwar/graphwar.jar" > "$pkgdir/usr/bin/graphwar"
chmod +x "$pkgdir/usr/bin/graphwar"
}
|