updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / etxreal-etfiles / PKGBUILD
blobe36ac3b1cd30e8dcc7ee0b8a50ce97d75ab33c79
1 # Maintainer: Babets
3 pkgname=etxreal-etfiles
4 pkgver=2.60
5 pkgrel=1
6 pkgdesc="Enemy Territory's files needed by ET:XreaL"
7 arch=('any')
8 url="http://www.moddb.com/mods/etxreal"
9 license=('custom: enemy territory')
10 source=(http://ftp.gwdg.de/pub/misc/ftp.idsoftware.com/idstuff/et/linux/et-linux-$pkgver.x86.run)
11 md5sums=('2d2373f29f02e18d365d7f1860eee435')
13 build() {
14   cd $srcdir
15   chmod +x et-linux-$pkgver.x86.run
16   ./et-linux-2.60.x86.run --noexec --target $srcdir
20 package() {
21   cd "$srcdir"
23   # create destination directories
24   install -d $pkgdir/usr/share/etxreal/etmain
25   install -d $pkgdir/usr/share/licenses/$pkgname
26   install -d $pkgdir/usr/share/pixmaps
28   # copy enemy-territory's pk3 files
29   install -Dm 644 etmain/{pak0,pak1,pak2}.pk3 $pkgdir/usr/share/etxreal/etmain
31   # install enemy territory license
32   install -Dm 644 Docs/EULA_Wolfenstein_Enemy_Territory.txt $pkgdir/usr/share/licenses/$pkgname
34   # install icon file
35   install -Dm 644 ET.xpm $pkgdir/usr/share/pixmaps/etxreal.xpm
39 # vim:set ts=2 sw=2 et: