1 # Maintainer: jose <jose1711 [at] gmail (dot) com>
2 # Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
7 pkgdesc="SDL roguelike with a 'Wing Commander: Privateer' theme"
9 url="http://www.asciisector.net"
10 license=("custom:freeware_with_limitations")
11 install="asciisec.install"
13 source=("music.zip::$url/cgi-bin/download.cgi?music" "asciisec.desktop" "asciisec.png")
14 md5sums=('f061f51a41d98561447b750de8a45400'
15 'd14120b34114c0f8414e8e8fa4594d72'
16 '9c994608913a1e62fb27276b0109f7bf')
18 [ "$CARCH" = "i686" ] && source+=("$pkgname$pkgver-linux.tar.gz::$url/cgi-bin/download.cgi?linux")
19 [ "$CARCH" = "x86_64" ] && source+=("$pkgname$pkgver-linux64.tar.gz::$url/cgi-bin/download.cgi?linux64")
20 [ "$CARCH" = "i686" ] && md5sums+=('1514b134a5b9c9f93d182fbc21b8a832')
21 [ "$CARCH" = "x86_64" ] && md5sums+=('7f33a337d2b893646c6b6b72e54c3879')
30 _dir=$pkgdir/usr/share/asciisec
32 mkdir -p $_dir/{data,graphics/{8x8,12x12,16x16},movies,music,quests,saves,sounds}
33 chmod 775 $_dir $_dir/{quests,saves,movies}
34 chgrp games $_dir $_dir/{quests,saves,movies}
35 install -D -m 644 data/* $_dir/data
36 install -D -m 644 graphics/* $_dir/graphics || true
37 install -D -m 644 graphics/8x8/* $_dir/graphics/8x8
38 install -D -m 644 graphics/12x12/* $_dir/graphics/12x12
39 install -D -m 644 graphics/16x16/* $_dir/graphics/16x16
40 install -D -m 644 quests/* $_dir/quests
41 install -D -m 644 sounds/* $_dir/sounds
42 install -D -m 644 {history.txt,icon.bmp,manual.pdf,readme.txt} $_dir
43 install -D -m 755 asciisec $_dir/asciisec
44 install -D -m 644 $srcdir/*.ogg $_dir/music
46 install -D -m 644 ${srcdir}/asciisec.png ${pkgdir}/usr/share/pixmaps/asciisec.png
47 install -D -m 644 ${srcdir}/asciisec.desktop ${pkgdir}/usr/share/applications/asciisec.desktop
51 cd /usr/share/asciisec
53 " > $pkgdir/usr/bin/asciisec
54 chmod 755 $pkgdir/usr/bin/asciisec