updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / srcds-launcher / PKGBUILD
blob18f13ef0eed7c75b806d3f3863ae77949a646983
1 # Maintainer: Olli Laasonen <admin at laasonen dot net>
3 pkgname=srcds-launcher
4 pkgver=1.0.2
5 pkgrel=3
6 pkgdesc="Makes starting of srcds orangebox servers easier and faster."
7 url="http://aur.archlinux.org/packages.php?ID=38603"
8 install="srcds-launcher.install"
9 arch=('any')
10 license=('AGPL')
11 depends=('srcds')
12 source=(srcds-launcher srcds-launcher-config srcds-launcher.install)
13 md5sums=('ffac15de067414db16e2cf56d592f790' '9f3fc78c71459aaa92519c33c3c3f4fe' 'e248aea5a0e5398e329d848b8ed201aa')
15 build(){
16         if [ -f $srcdir/$pkgname-$pkgver ]
17         then
18                 echo "Deleting old build folder.."
19                 rm -R $srcdir/$pkgname-$pkgver
20                 echo ""
21         fi
22         echo "Preparing files.."
23         mkdir $srcdir/$pkgname-$pkgver
24         cd $srcdir/$pkgname-$pkgver
25         chmod +x $srcdir/srcds-launcher
26         chmod +x $srcdir/srcds-launcher-config
27         echo ""
28         echo "Coping files.."
29         install -d $pkgdir/usr/bin
30         install -d $pkgdir/opt/srcds/
31         cp $srcdir/srcds-launcher $pkgdir/usr/bin/srcds-launcher
32         cp $srcdir/srcds-launcher-config $pkgdir/opt/srcds/srcds-launcher-config