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
# $Id: PKGBUILD,v 1.12 2003/11/06 08:26:13 dorphell Exp $
# Maintainer: Vitor Sakaguti <vitoreiji0 at gmail.com>
# Contributor: Martin Frost <[email protected]>
pkgname=xjump
pkgver=2.7.5 
pkgrel=6
pkgdesc="A jumping game for X. Very simple, yet very addictive"
arch=('i686' 'x86_64')
url="http://www.foo.org"
license=('GPL')
depends=('libxaw')
makedepends=('libxaw')
install='xjump.install'
source=(http://ftp.debian.org/debian/pool/main/x/xjump/xjump_$pkgver.orig.tar.gz)
md5sums=('3e8d09c6b8162b7e4380f8a77eb595dc')

build() {
  sed -i "s/\/usr\/games/\/usr\/bin/" $pkgname-$pkgver.orig/Makefile
  cd "$srcdir"/$pkgname-$pkgver.orig
  make
}
package() {
  cd "$srcdir"/$pkgname-$pkgver.orig
  # mkdir -p "$pkgdir"/usr/bin
  # mkdir -p "$pkgdir"/var/games/xjump
  install -d "$pkgdir"/usr/bin
  install -d "$pkgdir"/var/games/xjump
  chmod 775 "$pkgdir"/var/games
  make DESTDIR="$pkgdir" install
}