From 12a4a3c897970f071fae56653964ec385147ec2e Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Mon, 27 Feb 2012 15:30:59 +0100 Subject: [PATCH] [ruby-xapian-full] Updated PKGBUILD following changes in Arch Ruby packaging --- pkgbuild/ruby-xapian-full/PKGBUILD | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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: