updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / cbzone / PKGBUILD
blob4e1a6917ef9e4fa6070fbb004fe643c9a279e12b
1 # Maintainer: Anton Bazhenov <anton.bazhenov at gmail>
3 pkgname=cbzone
4 pkgver=2.0c
5 pkgrel=1
6 pkgdesc="Classical Unix version of the Battlezone game"
7 arch=('i686' 'x86_64')
8 url="http://happypenguin.org/show?Cbzone"
9 license=('custom')
10 depends=('libxext' 'libxt')
11 makedepends=('imake')
12 source=("http://ftp.twaren.net/Sun/sunfreeware.com/i386/5.5/server.berkeley.edu/${pkgname}.tar.gz"
13         "COPYING")
14 md5sums=('ed5630eacf85136837175fa33d6921f0'
15          'd41eac8f578fbd5d1505aeb244d59294')
17 build() {
18   cd "${srcdir}/${pkgname}"
19   sed -i 's_/usr/ucbinclude/__g' c_includes.h
20   sed -i 's_BINDIR = /usr/local/games/_BINDIR = /usr/bin/_g' Imakefile
21   sed -i 's_TANKDIR = /usr/local/games/lib/cbzone/_TANKDIR = /usr/share/cbzone/_g' Imakefile
22   sed -i 's_-L/usr/ucblib -lucb__g' Imakefile
23   xmkmf -a || return 1
24   make cbzone || return 1
27 package() {
28   cd "${srcdir}/${pkgname}"
29   install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
30   install -Dm644 "${pkgname}.help" "${pkgdir}/usr/share/${pkgname}/${pkgname}.help"
31   install -Dm644 "${pkgname}.motd" "${pkgdir}/usr/share/${pkgname}/${pkgname}.motd"
32   install -Dm644 "../COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
35 # vim:set ts=2 sw=2 et: