blob: 546d58b4eb355532b1e80b88def953d09e8153c4 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Maintainer: Adam Nielsen <malvineous@shikadi.net>
_pkgname=camoto-studio
pkgname=${_pkgname}-git
pkgver=20120611
pkgrel=1
pkgdesc="Examine and edit DOS games"
arch=('i686' 'x86_64')
url="http://www.shikadi.net/camoto"
license=('GPL3')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
depends=(
'boost'
'png++'
'libgamecommon'
'libgamearchive'
'libgamegraphics'
'libgamemaps'
'libgamemusic'
'wxgtk'
)
makedepends=('git' 'autoconf' 'automake' 'pkgconfig')
options=()
_gitname=${_pkgname}
_gitroot="git://github.com/Malvineous/${_gitname}"
source=()
md5sums=()
build() {
cd "${srcdir}"
if [ "$NOEXTRACT" -eq 0 ]; then
if [ -d "$_gitname" ]; then
cd "$_gitname"
msg "Cleaning up from previous build."
git clean -X -f
msg "Reverting local changes to source tree..."
git reset --hard
msg "Updating from GitHub server..."
git pull origin
msg "The local files are updated."
else
msg "Downloading from GitHub server..."
git clone --depth=1 -- "$_gitroot" "$_gitname"
cd "$_gitname"
fi
else
warning "Skipping git clean/pull -- using existing src/ tree"
cd "$_gitname"
fi
msg "Configuring build environment..."
./autogen.sh
./configure --prefix="/usr"
msg "Beginning compile..."
make ${MAKEFLAGS}
}
check() {
cd "$srcdir/$_gitname"
make ${MAKEFLAGS} check
}
package() {
cd "$srcdir/$_gitname"
make install DESTDIR="$pkgdir"
}
|