updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / postal2stp-freemp / PKGBUILD
blobcf27081a1438f0bf1d9ccff581d8c8885ad719b0
1 # Contributor: rabyte <rabyte*gmail>
3 pkgname=postal2stp-freemp
4 pkgver=1409.2
5 pkgrel=5
6 pkgdesc='Freeware multiplayer edition of "Postal 2: Share The Pain"'
7 arch=('i686' 'x86_64')
8 url="http://icculus.org/news/news.php?id=4419"
9 license=('custom')
10 depends=('gcc-libs' 'libstdc++5' 'xorg-server')
11 [ "$CARCH" = "x86_64" ] && depends=('lib32-gcc-libs' 'lib32-libstdc++5' 'xorg-server')
12 source=(http://treefort.icculus.org/postal2/Postal2STP-FreeMP-linux.tar.bz2 \
13         $pkgname.sh \
14         $pkgname.desktop)
15 md5sums=('eb40b2ddfec31062639e1c942949f524'
16          '1e5ec64cbef7f14b16e6f4e6837312a0'
17          'bd886391ed0d420622de64dadc5f5401')
19 build() {
20   cd Postal2STP-FreeMP-linux
22   mkdir -p $pkgdir/usr/share/{applications,pixmaps,licenses/$pkgname}
23   mv -f $pkgname-license.txt $pkgdir/usr/share/licenses/$pkgname/
24   mv -f postal2.xpm $pkgdir/usr/share/pixmaps/
25   cp -rf . $pkgdir/usr/share/$pkgname/
26   install -m755 -D ../$pkgname.sh $pkgdir/usr/bin/$pkgname
27   install -m644 ../$pkgname.desktop $pkgdir/usr/share/applications/
29   find $pkgdir -name '*.so*' -exec chmod 644 {} \;
32 # vim:set ts=2 sw=2 et: