blob: 5c8f88a87cd0c214f7c2e8877b1bd66479452cb8 (
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
|
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
# Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
pkgname=scavenger
pkgver=145.4
pkgrel=1
pkgdesc="2D arcade/thinking game like Lode Runner (SDL version)"
arch=('i686' 'x86_64')
url="http://www.linuxmotors.com/scavenger/"
license=('GPL')
depends=('sdl')
source=("http://downloads.sourceforge.net/sdlscavenger/sdlscav-${pkgver}_2015_01_05.tgz"
"$pkgname.desktop"
"$pkgname-fs.desktop")
sha256sums=('28337a4e43756048a6d53994fcdcba6af4c9a68568d734ea774189713c4d67fe'
'676a680f256138391bd11a18a6f40499ecf8113cd1345621ed429f612c9e1c7a'
'c376b2cfc6e6a621ddb871fd4d5a26f6a1c758362eb9feda1effcf898db0f73e')
prepare() {
cd sdlscav-145
# add our cflags
sed "s|-O2|${CFLAGS}|" -i Makefile
# delete lines touching our home directory
sed '/HOME/d' -i Makefile
# set data path
sed "s|/usr/local/games|/usr/share|" -i names.h
}
build() {
make -C sdlscav-145
}
package() {
cd sdlscav-145
# install game files
install -d "$pkgdir"/usr/share/$pkgname/rc
install -m644 data/*rc "$pkgdir"/usr/share/$pkgname/rc
install -m644 data/*.{lbm,scl,wav} "$pkgdir"/usr/share/$pkgname
install -Dm755 sdlscav "$pkgdir"/usr/bin/$pkgname
# install the pixmap and desktop file
install -Dm644 data/scav.png "$pkgdir"/usr/share/pixmaps/$pkgname.png
install -Dm644 ../$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
}
|