diff --git a/pkgbuild/ruby-xapian-full/PKGBUILD b/pkgbuild/ruby-xapian-full/PKGBUILD index 620ccd4..abbaf01 100644 --- a/pkgbuild/ruby-xapian-full/PKGBUILD +++ b/pkgbuild/ruby-xapian-full/PKGBUILD @@ -2,7 +2,7 @@ # Contributor: David Campbell pkgname=ruby-xapian-full pkgver=1.2.3 -pkgrel=2 +pkgrel=3 pkgdesc="Xapian bindings for Ruby without dependency on system Xapian library" arch=('i686' 'x86_64') url="http://rubygems.org/gems/xapian-full" @@ -18,7 +18,7 @@ md5sums=('772947e9b6a03f37a00c361ac7492ad6' options=('!makeflags' '!libtool') build() { - cd $srcdir + cd "$srcdir" local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" #patch Rakefile @@ -27,16 +27,19 @@ build() { rm xapian-full-${pkgver}.gem cd xapian-full-${pkgver} patch -p1 < ../Rakefile.patch - + echo "Building gem..." gem build xapian-full.gemspec mv xapian-full-${pkgver}.gem .. cd .. rm -rf xapian-full-${pkgver} - + +} + +package(){ + cd "$srcdir" echo "Installing gem..." - gem install --ignore-dependencies --verbose -i "$pkgdir$_gemdir" xapian-full-$pkgver.gem \ - -n "$pkgdir/usr/bin" + gem install --no-user-install --ignore-dependencies --verbose -i "$pkgdir$_gemdir" -n "$pkgdir"/usr/bin xapian-full-$pkgver.gem } # vim:set ts=2 sw=2 et: