1 # Contributor: Paul Bredbury <brebs@sent.com>
6 pkgdesc="A Doom 3 mod based on the Phantasm horror movies"
8 url="http://doom3.filefront.com/file/Phantasm_D3;72040"
9 license=('custom:doom3-phantasm')
12 source=(ftp://files.mhgaming.com/doom3/mods/phantasm_d3_${pkgver}.zip
13 http://ducttape.glenmurphy.com/ducttape0006.zip
15 doom3-phantasm.desktop)
16 md5sums=('e7ec9729b3a90e29b7ccdda94d9e3463'
17 'b890d978f3bc5b5c8ecbe52e4934e368'
18 'ccfbd73953c480c86bb0b2a6eef0f05f'
19 '0efbe5d6d7937f1bb275cc908e2ee361')
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
34 install -D -m644 $startdir/src/$pkgname.desktop $startdir/pkg/usr/share/applications/$pkgname.desktop || return 1