View difference between Paste ID: Fj8E9e8g and
SHOW:
|
|
- or go back to the newest paste.
| 1 | - | |
| 1 | + | pkgname=naev-git |
| 2 | pkgver=20110129 | |
| 3 | pkgrel=1 | |
| 4 | pkgdesc="2D space trading and combat game similar to Escape Velocity, development branch." | |
| 5 | arch=('i686' 'x86_64')
| |
| 6 | url="http://naev.org" | |
| 7 | license=('GPL')
| |
| 8 | depends=('sdl_image' 'sdl_mixer' 'libxml2' 'freetype2' 'libpng' 'openal' 'libvorbis' 'binutils' 'libgl')
| |
| 9 | makedepends=('git')
| |
| 10 | provides=('naev' 'naev-data')
| |
| 11 | conflicts=('naev' 'naev-data')
| |
| 12 | ||
| 13 | _gitroot="git://github.com/bobbens/naev.git" | |
| 14 | _gitname="naev" | |
| 15 | _gitbranch="balance" | |
| 16 | ||
| 17 | build() {
| |
| 18 | cd "$srcdir" | |
| 19 | msg "Connecting to $_gitroot..." | |
| 20 | ||
| 21 | if [[ -d "$_gitname" ]]; then | |
| 22 | cd "$_gitname" | |
| 23 | git pull origin | |
| 24 | msg "Completed update of local files." | |
| 25 | else | |
| 26 | git clone "$_gitroot" "$_gitname" | |
| 27 | fi | |
| 28 | ||
| 29 | cd "$srcdir/$_gitname" | |
| 30 | msg "Checking out $_gitbranch branch..." | |
| 31 | ||
| 32 | if [[ "$(git branch)" =~ "$_gitbranch" ]]; then | |
| 33 | git checkout "$_gitbranch" | |
| 34 | else | |
| 35 | git checkout -b "$_gitbranch" "origin/$_gitbranch" | |
| 36 | fi | |
| 37 | ||
| 38 | msg "GIT checkout done or server timeout." | |
| 39 | msg "Cloning to build directory..." | |
| 40 | ||
| 41 | rm -rf "$srcdir/$_gitname-build" | |
| 42 | git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" | |
| 43 | ||
| 44 | cd "$srcdir/$_gitname-build" | |
| 45 | msg "Starting make..." | |
| 46 | ||
| 47 | ./autogen.sh | |
| 48 | ./configure --prefix=/usr | |
| 49 | ||
| 50 | make | |
| 51 | } | |
| 52 | ||
| 53 | package() {
| |
| 54 | cd "$srcdir/$_gitname-build" | |
| 55 | ||
| 56 | make DESTDIR="$pkgdir" install | |
| 57 | } |