updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gtkmagnetic / PKGBUILD
blob465852f0ed0a46fe0055044403aff0aba9a98503
1 # Maintainter: thr <r at sledinmay dot com>
2 # Contributor: Emmanuele Massimi <finferflu at gmail dot com>
3 pkgname=gtkmagnetic
4 pkgver=2.3
5 pkgrel=2
6 pkgdesc="An interpreter for Magnetic Scrolls adventures."
7 arch=(i686 x86_64)
8 url="http://mirror.ifarchive.org/indexes/if-archiveXmagnetic-scrollsXinterpretersXmagnetic.html"
9 license=('GPL')
10 depends=('gtk2' 'smpeg')
11 source=("http://mirror.ifarchive.org/if-archive/magnetic-scrolls/interpreters/magnetic/Magnetic23Src.zip"
12         gargoyle.patch ms_init.patch gtkmagnetic.desktop gtkmagnetic.xpm)
13 md5sums=('74b0d027c6a70e39d9447f12c215e8a9'
14          '2f1dcd0446348b32a873d591ce670a37'
15          'ec4cb13ac5f78d46069baf83ba674542'
16          'e66164695a7c559fe046a922526c94d3'
17          'f8bda0389176b8ec8cf05d59dcdc7bf2') 
19 build() {
20   patch -Np0 -i $srcdir/ms_init.patch
21   patch -Np0 -i $srcdir/gargoyle.patch
23   cd $srcdir/Gtk
24   make || return 1
26   mkdir -p $pkgdir/usr/share/gtkmagnetic
27   mkdir -p $pkgdir/usr/share/pixmaps
29   cp $srcdir/Gtk/README $pkgdir/usr/share/gtkmagnetic/
30   cp $srcdir/../$pkgname.xpm $pkgdir/usr/share/pixmaps/$pkgname.xpm
31   install -D -m644 $srcdir/../$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
32   install -D ./gtkmagnetic $startdir/pkg/usr/bin/gtkmagnetic
33   ln -s /usr/bin/gtkmagnetic $pkgdir/usr/bin/magnetic