updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / doom3-cdoom / PKGBUILD
blob3032c8ef0b4db387566158b29813bc2bedc71e0f
1 # Contributor: Slash <demodevil5 [at] yahoo [dot] com>
3 pkgname=doom3-cdoom
4 pkgver=1.3.1
5 pkgrel=1
6 pkgdesc="Classic Doom: Doom 1 shareware episode maps recreated for use with Doom 3."
7 url="http://cdoom.d3files.com/"
8 license=('custom')
9 arch=('i686')
10 depends=('doom3')
11 makedepends=('unzip')
12 # Download: http://files.filefront.com/classic+doom+3+131zip/;9003559;/fileinfo.html
13 source=('classic_doom_3_1.3.1.zip' 'doom3-cdoom.desktop' 'doom3-cdoom.launcher')
14 md5sums=('7dc67da1a4007e85014de566283d1a41'
15          'fe84fee23843eac65cecdf3e76414184'
16          'bfb9b58d9f2ed85839472848ecfd5a30')
18 build() {
19     cd $startdir/src
21     # Create Destination Directories
22     install -d $startdir/pkg/{usr/bin/,opt/doom3/}
24     # Remove Unneeded Files
25     rm $startdir/src/cdoom/{*.url,*.bat}
27     # Move Icon
28     mv $startdir/src/cdoom/cdoom.ico $startdir/src/doom3-cdoom.ico
30     # Move License
31     mv $startdir/src/cdoom/docs/License.txt $startdir/src/License.txt
33     # Move Data to Destination Directory
34     mv $startdir/src/cdoom $startdir/pkg/opt/doom3/
36     # Install Launcher (Client)
37     install -D -m 755 $startdir/src/doom3-cdoom.launcher \
38         $startdir/pkg/usr/bin/doom3-cdoom
40     # Install License
41     install -D -m 644 $startdir/src/License.txt \
42         $startdir/pkg/usr/share/licenses/$pkgname/License.txt
44     # Install Icon
45     install -D -m 644 $startdir/src/doom3-cdoom.ico \
46         $startdir/pkg/usr/share/pixmaps/doom3-cdoom.ico
48     # Install Desktop File
49     install -D -m 644 $startdir/src/doom3-cdoom.desktop \
50         $startdir/pkg/usr/share/applications/doom3-cdoom.desktop