Created
July 9, 2019 13:02
-
-
Save Weirdo1312/b20a28718ba22b4bb6d5270ceb9af060 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname="true-combat-elite-bin" | |
pkgver=0.49b | |
pkgrel=1 | |
pkgdesc="Tactical 3D multiplayer 1st person shooter in the style of Counter Strike, Urban Terror based on Enemy Territory id3 engine." | |
arch=('i686' 'x86_64') | |
url="http://www.truecombatelite.com/" | |
license=('unknown') | |
makedepends=('') | |
options=(!strip) | |
source=('https://github.com/fabiang/true-combat/releases/download/1.1.0/true-combat-linux-complete-0.49b-1.1.0.tar.gz') | |
sha256sums=('c539a709eae02ba9f967461fc3382f09dfc4fa8311903a725e73b0c99687a930') | |
prepare() { | |
echo 'unpacking' | |
tar xvf true-combat-elite-0.49b-linux.tar.xz | |
} | |
package() { | |
mkdir -p "${pkgdir}/usr/bin" "${pkgdir}/usr/share/applications" "${pkgdir}/usr/share/games" | |
mv "${srcdir}/true-combat-elite/true-combat-elite" "${srcdir}/true-combat-elite/true-combat-elite-server" "${pkgdir}/usr/bin/" | |
mv "${srcdir}/true-combat-elite" "${pkgdir}/usr/share/games/" | |
_desktop="${pkgdir}/usr/share/applications/true-combat-elite.desktop" | |
echo '[Desktop Entry]' > ${_desktop} | |
echo 'Type=Application' >> ${_desktop} | |
echo "Name=True Combat Elite ${pkgver/\.*/}" >> ${_desktop} | |
echo "Comment=${pkgdesc}" >> ${_desktop} | |
echo 'Exec=true-combat-elite' >> ${_desktop} | |
echo "Icon=/usr/share/games/true-combat-elite/icon.png" >> ${_desktop} | |
echo 'Terminal=false' >> ${_desktop} | |
echo 'Categories=Games;ActionGame;' >> ${_desktop} | |
} | |
post_install() { | |
echo 'First time users: start true-combat-elite three times to get native display resolution.' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment