updated on Wed Jan 11 08:01:35 UTC 2012
[aur-mirror.git] / wok / PKGBUILD
blobecfb283781fccdd05d259e85ffa6136b5656f39e
1 # Contributor: Nick B <Shirakawasuna at gmail _dot_com>
2 pkgname=wok
3 pkgver=1.0
4 pkgrel=2
5 pkgdesc="An old Kenta Cho game.  Throw colorful balls to the side with your "wok" and don't let them touch the ground!"
6 arch=('i686' 'x86_64')
7 url="http://www.asahi-net.or.jp/~cs8k-cyu/linux/wok.html"
8 license=('custom')
9 depends=('libvorbis' 'sdl_mixer' 'sdl_image')
10 source=(http://www.asahi-net.or.jp/~cs8k-cyu/linux/wok_src1_0.tar.gz
11         patch_wok_1.0-1.diff
12         desktopfile_wok
13         scriptfile_wok)
15 build() {
17 #note: Much of the effort to get this working is due to
18 #the work of Miriam Ruiz.  Much thanks!
20 cd $startdir/src/wok
21 cp ../wok_1.0-1.diff .
22 patch -Ni ./wok_1.0-1.diff
23 patch -Ni ./01_makefile.patch
24 patch -Ni ./02_images_dir.patch
25 patch -Ni ./03_sounds_dir.patch
26 patch -Ni ./04_home_dir.patch
28 sed -i s,"-lpthread","-lpthread -lvorbisfile",g ./Makefile
30 make
32 mkdir -p $startdir/pkg/usr/share
33 cp -r $startdir/src/wok $startdir/pkg/usr/share/
35 install -D -m644 $startdir/src/wok/wok.xpm $startdir/pkg/usr/share/pixmaps/wok.xpm
36 install -D -m644 $startdir/src/wok-desktop $startdir/pkg/usr/share/applications/wok.desktop
37 install -D -m755 $startdir/src/wok-script $startdir/pkg/usr/bin/wok
39 gzip -f ./wok.6
40 install -D -m644 $startdir/src/wok/wok.6.gz $startdir/pkg/usr/share/man6/wok.6.gz
42 install -D -m644 $startdir/src/wok/copyright $startdir/pkg/usr/share/licenses/wok/copyright
44 md5sums=('082ad53d3a1a45019ba66d8fe1e724aa'
45          'cec037b625a4a4ebddbfd7ae6e6c95a1'
46          '4d001438a8d6fec5971441d074f901db'
47          'b6733ed9c1faf78723c5e38bb604e3d8')