1 # Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
2 # Requires uplink.zip from original Uplink CD
6 pkgdesc="Trust is a weakness - a futuristic computer crime game. Requires uplink.zip from original CD."
8 url="http://www.introversion.co.uk/uplink"
10 depends=(mesa zlib libxdamage)
11 [ "$CARCH" = 'x86_64' ] && depends=(lib32-mesa lib32-zlib lib32-libxdamage)
12 source=(uplink.zip uplink.desktop libjpeg.so.62
13 #"http://www.uplink.co.uk/test/uplink-patch-$pkgver.tar.gz"
14 "http://pkgbuild.com/~heftig/uplink-patch-$pkgver.tar.gz"
15 "http://www.introversion.co.uk/uplink/downloads/UplinkBoBCodeCard.pdf")
16 noextract=(uplink.zip)
22 install -D "$srcdir/libjpeg.so.62" opt/uplink/lib/libjpeg.so.62
24 bsdtar -x -f "$srcdir/uplink.zip" -C opt/uplink/lib \
25 data.dat fonts.dat graphics.dat loading.dat music.dat world.dat
27 cp -R "$srcdir/uplink" opt
29 chmod -R og-w opt/uplink
31 chmod +x opt/uplink/lib opt/uplink/uplink
32 chmod -x opt/uplink/lib/*.dat
34 install -m 644 -D "$srcdir/uplink.desktop" usr/share/applications/uplink.desktop
36 mkdir -p "usr/share/licenses/$pkgname"
37 ln -s /opt/uplink/license.txt "usr/share/licenses/$pkgname"
39 install -m 644 -D "$srcdir/UplinkBoBCodeCard.pdf" "usr/share/doc/$pkgname/codecard.pdf"
40 ln -s /opt/uplink/readme.txt "usr/share/doc/$pkgname"
43 ln -s /opt/uplink/uplink usr/bin/
46 md5sums=('3586676502d31cc646120b3fc7fcbcf2'
47 'bc70f1b3ccab0000303e66019125d3ba'
48 '767f67b7fd6944e5378016edbdf6015f'
49 '0c65e90a5f7eff6c18b6228012511719'
50 '5bd4954f8a0697734cfdd2bfd182e669')