blob: 8b543e2fe16c4f4ce0ba1b3163674ce28dfcb77b (
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
30
31
32
33
34
35
36
37
|
# Maintainer: Zanny <lordzanny@gmail.com
pkgname=quakeinjector-git
_name=quakeinjector
_gitname=QuakeInjector
pkgver=alpha03.r36.b18b214
pkgrel=1
pkgdesc="Download, install and play quake singleplayer maps from the quaddicted.com archive"
url="http://www.haukerehfeld.de/projects/quakeinjector/"
arch=(any)
license=(GPL)
depends=(java-environment hicolor-icon-theme)
makedepends=(git gradle)
provides=(quakeinjector)
conflicts=(quakeinjector)
replaces=(quakeinjector)
source=("git+https://github.com/hrehfeld/$_gitname.git"
'quakeinjector.desktop')
md5sums=(SKIP
'c55fafa5ffa3c9c9cb1188d493e34671')
pkgver() {
cd "$srcdir/$_gitname"
printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {
cd "$srcdir/$_gitname"
gradle assemble
}
package() {
for res in '16' '32' '48' '256'; do
install -Dm644 "$srcdir/$_gitname/build/resources/main/Inject2_$res.png" "$pkgdir/usr/share/icons/hicolor/${res}x$res/apps/$_name.png"
done
install -Dm644 "$srcdir/$_name.desktop" "$pkgdir/usr/share/applications/$_name.desktop"
install -Dm644 "$srcdir/$_gitname/build/libs/$_gitname-alpha04-gradle.jar" "$pkgdir/usr/share/$_name/$_name.jar"
}
|