1 # Maintainer: Anton Bazhenov <anton.bazhenov at gmail>
6 pkgdesc="Classical Unix version of the Battlezone game"
8 url="http://happypenguin.org/show?Cbzone"
10 depends=('libxext' 'libxt')
12 source=("http://ftp.twaren.net/Sun/sunfreeware.com/i386/5.5/server.berkeley.edu/${pkgname}.tar.gz"
14 md5sums=('ed5630eacf85136837175fa33d6921f0'
15 'd41eac8f578fbd5d1505aeb244d59294')
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
24 make cbzone || return 1
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: