updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / doom3-phantasm / PKGBUILD
blobee73ba003671088f057aac180199e9d114bde78d
1 # Contributor: Paul Bredbury <brebs@sent.com>
3 pkgname=doom3-phantasm
4 pkgver=1.2
5 pkgrel=5
6 pkgdesc="A Doom 3 mod based on the Phantasm horror movies"
7 arch=(i686 x86_64)
8 url="http://doom3.filefront.com/file/Phantasm_D3;72040"
9 license=('custom:doom3-phantasm')
10 depends=('doom3')
11 makedepends=('unzip')
12 source=(ftp://files.mhgaming.com/doom3/mods/phantasm_d3_${pkgver}.zip
13         http://ducttape.glenmurphy.com/ducttape0006.zip
14         doom3-phantasm.sh
15         doom3-phantasm.desktop)
16 md5sums=('e7ec9729b3a90e29b7ccdda94d9e3463'
17          'b890d978f3bc5b5c8ecbe52e4934e368'
18          'ccfbd73953c480c86bb0b2a6eef0f05f'
19          '0efbe5d6d7937f1bb275cc908e2ee361')
21 build() {
22   cd $startdir/src/phantasm_d3
24   mkdir -p $startdir/pkg/{opt/doom3/phantasm,usr/share/licenses/$pkgname}
25   cp -r config.spec description.txt guis phantasma.pk4 $startdir/pkg/opt/doom3/phantasm/ || return 1
26   install -m644 ../pak008.pk4 $startdir/pkg/opt/doom3/phantasm/pak999.pk4 || return 1
27   install -m755 -D ../$pkgname.sh $startdir/pkg/usr/bin/$pkgname || return 1
29   # Extract custom license
30   sed -n 107,120p "phantasm_d3_${pkgver}  readme.txt" | sed 's|^ *||g' \
31     > $startdir/pkg/usr/share/licenses/$pkgname/LICENSE || return 1
33   # Desktop entry
34   install -D -m644 $startdir/src/$pkgname.desktop $startdir/pkg/usr/share/applications/$pkgname.desktop || return 1