blob: c936cf0bad2480231d1b24a3085704f517a86df6 (
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
41
42
43
44
45
46
47
48
49
50
51
|
#Maintainer: CubeTheThird <cubethethird@gmail.com>
pkgname=brogue-ce-git
pkgver=1.8.1.r26.g6979fcb
pkgrel=1
pkgdesc="Brogue Community Edition: A 26-level dungeon crawl to the Amulet of Yendor."
arch=('i686' 'x86_64')
url="https://github.com/tmewett/BrogueCE"
license=('AGPL3')
depends=('sdl2_image')
makedepends=('git')
source=(brogue-ce-git::"git+https://github.com/tmewett/BrogueCE.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$pkgname"
make clean
make DATADIR="/opt/${pkgname}"
cd linux
./make-link-for-desktop.sh > /dev/null
sed -i -e "s|$(pwd)|/opt/${pkgname}|" -e 's/brogue$/brogue-multiuser.sh/' -e 's/bin\///' "brogue.desktop"
sed -i -e "s|/opt/brogue|/opt/${pkgname}|" -e "s|/Brogue|/${pkgname}|" brogue-multiuser.sh
}
package() {
cd "$srcdir/$pkgname"
install -Dm644 "linux/brogue.desktop" "$pkgdir/usr/share/applications/${pkgname}.desktop"
_dest_dir="$pkgdir/opt/$pkgname"
mkdir -p "$_dest_dir/assets"
install -Dm755 "linux/brogue-multiuser.sh" "$_dest_dir"
cd bin/
install -Dm755 brogue "$_dest_dir"
install -Dm644 keymap.txt "$_dest_dir"
install -Dm644 assets/* "$_dest_dir/assets"
mkdir -p $pkgdir/usr/bin
ln -s "/opt/${pkgname}/brogue-multiuser.sh" "$pkgdir/usr/bin/$pkgname"
}
|