1 # Contributor: Eric Forgeot < http://ifiction.free.fr >
5 pkgdesc="interactive fiction mapper"
7 url="http://ifmapper.rubyforge.org/"
9 depends=('ruby' 'rubygems' 'fxruby')
11 source=(http://rubyforge.org/frs/download.php/73195/ifmapper-1.0.5.gem)
13 md5sums=('5edd0bec0b99aabe15f7f9b8af2ea002')
18 # _gemdir is defined inside build() because if ruby[gems] is not installed on the system
19 # makepkg will barf when sourcing the PKGBUILD
20 local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
22 gem install --ignore-dependencies -i "$pkgdir$_gemdir" $pkgname-$pkgver.gem
23 cp -fr $srcdir/../FXMapperWindow.rb $pkgdir/usr/lib/ruby/gems/1.9.1/gems/ifmapper-1.0.5/lib/IFMapper/
24 # patch -p0 < $srcdir/../FXMapperWindow.patch
27 mkdir -p $pkgdir/usr/bin/
28 echo "ruby /usr/lib/ruby/gems/1.9.1/gems/ifmapper-1.0.5/IFMapper.rbw" > $pkgdir/usr/bin/ifmapper.sh
29 chmod +x $pkgdir/usr/bin/ifmapper.sh
33 mkdir -p $pkgdir/usr/share/pixmaps
34 mkdir -p $pkgdir/usr/share/applications
36 # will be made later...
37 #cp $srcdir/../$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
39 install -D -m644 $srcdir/../$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop