# $Id: PKGBUILD 211456 2017-02-09 14:01:34Z svenstaro $ # Maintainer: Sven-Hendrik Haase # Contributor: grimi pkgname=urbanterror pkgver=4.3.3 pkgrel=1 epoch=1 pkgdesc="A team-based tactical shooter based on the Quake 3 Engine" arch=('x86_64') url="http://www.urbanterror.info" license=('GPL2') depends=('sdl' 'openal' 'curl') backup=('opt/urbanterror/q3ut4/server.cfg' 'opt/urbanterror/q3ut4/mapcycle.txt') makedepends=('mesa') source=("http://www.happyurtday.com/releases/4x/UrbanTerror${pkgver//.}_full.zip" "urbanterror.sh" "urbanterror-server.sh" "urbanterror.desktop" "urbanterror.png") sha512sums=('85f1311d26a510f7a3cf71447c506b486a0c8d6dad83038e2b1ace662b125ba904bcb91ec036e8468277671bcaff84a99a82e4663790ff2136e150637483f490' 'd296cee59c9a344b03485b2400278f05d4a4edd8f782f72b10857d4654d46ff1b6f181c51abb5a718d6b4a7227601d67fb2ba2b3fe7876bfec17b7c9827525a0' '6f444b1203b8c1a66c86a2112f3565059ba1135940cef37208ea05933290e1b3b9d8325c7fc86466fd8646338c8deaa168a22049104bda0631eab76a21a77e51' '33cb13820002f6620075143a1729018caf70a7cceb9b606db295fd621833add127474f1399626d722a3a8a7d9ba001b6dada4ca877ec87251a32d616367991d4' 'aad7cf50335d7d1a1bcb03be0cf52f8e8214e91d7ff1c76045ffed57ba599023468341a3ae07abb8b06ef2857deeae8610defdd2dc8a3e5fb48eeb3ca2033074') package() { install -d "${pkgdir}/opt/urbanterror" cd "${pkgdir}/opt/urbanterror" # Copy binaries. install -m755 "${srcdir}/UrbanTerror43/Quake3-UrT.x86_64" urbanterror install -m755 "${srcdir}/UrbanTerror43/Quake3-UrT-Ded.x86_64" urbanterror-ded # Copy data cp -r "${srcdir}/UrbanTerror43/q3ut4" "${pkgdir}/opt/urbanterror/q3ut4" install -Dm644 "${srcdir}/UrbanTerror43/q3ut4/readme43.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" echo -e "\nseta cl_cURLLib \"/usr/lib/libcurl.so.4\"" >> "${pkgdir}/opt/urbanterror/q3ut4/autoexec.cfg" # Copy desktop launcher. install -Dm644 "${srcdir}/urbanterror.desktop" "${pkgdir}/usr/share/applications/urbanterror.desktop" install -Dm644 "${srcdir}/urbanterror.png" "${pkgdir}/usr/share/pixmaps/urbanterror.png" # Copy launch scripts. install -Dm755 "${srcdir}/urbanterror.sh" "${pkgdir}/usr/bin/urbanterror" install -Dm755 "${srcdir}/urbanterror-server.sh" "${pkgdir}/usr/bin/urbanterror-server" } # vim: sw=2:ts=2 et: