blob: 8477d1b4aa633c609acd16416cbf35a85d1dc215 (
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
38
39
40
|
# Maintainer: Adrian Room <ingolemo@gmail.com>
pkgname=knightsgame
pkgver=027
pkgrel=3
pkgdesc="A free multiplayer competitive game involving knights, dungeons, and quests."
arch=('x86_64')
url="http://www.knightsgame.org.uk/"
license=('GPL2')
depends=('boost-libs' 'sdl2' 'curl' 'lua' 'fontconfig' 'enet')
makedepends=('boost')
source=(http://www.knightsgame.org.uk/files/knights_${pkgver}_src.tar.gz knightsgame.desktop knightsgame.png)
sha256sums=('b344315a56d20b7de537de8d9aea3207127629b4a94915187653e260b35f99fd'
'006ebd0580195d160a387a02b776519aa520290a807bcf90037112e8136575bb'
'648cdec9d411e8ba58e8827d594bd7bfbde620df62457c729cad93c03961550e')
build() {
cd "$srcdir/knights_${pkgver}_src"
# correct the lua++ package name
sed 's/pkg-config lua-c++ --cflags/pkg-config lua++ --cflags/' -i Makefile
sed 's/pkg-config lua-c++ --libs/pkg-config lua --libs/' -i Makefile
prefix=/usr
make \
PREFIX="$prefix" \
DOC_DIR="$prefix/share/doc/$pkgname" \
DATA_DIR="$prefix/share/$pkgname"
}
package() {
cd "$srcdir/knights_${pkgver}_src"
prefix="$pkgdir/usr"
make install \
PREFIX="$prefix" \
DOC_DIR="$prefix/share/doc/$pkgname" \
DATA_DIR="$prefix/share/$pkgname"
install -D -m 644 "$srcdir/knightsgame.desktop" "$prefix/share/applications/knightsgame.desktop"
install -D -m 644 "$srcdir/knightsgame.png" "$prefix/share/pixmaps/knightsgame.png"
}
|