updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / ifmapper / PKGBUILD
blob05a5ebcb7036e29ca43537bc24deba1ef3788621
1 # Contributor: Eric Forgeot < http://ifiction.free.fr >
2 pkgname=ifmapper
3 pkgver=1.0.5
4 pkgrel=1
5 pkgdesc="interactive fiction mapper"
6 arch=(i686 x86_64)
7 url="http://ifmapper.rubyforge.org/"
8 license=('gpl')
9 depends=('ruby' 'rubygems' 'fxruby')
10 #groups=()
11 source=(http://rubyforge.org/frs/download.php/73195/ifmapper-1.0.5.gem)
13 md5sums=('5edd0bec0b99aabe15f7f9b8af2ea002')
15 build() {
16         
17   cd $srcdir/
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
25   
26   
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
32  #desktop icons
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
38         
39         install -D -m644 $srcdir/../$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
40         
41