[ruby-xapian-full] Updated PKGBUILD following changes in Arch Ruby
packaging
This commit is contained in:
parent
266820eb5c
commit
12a4a3c897
1 changed files with 9 additions and 6 deletions
|
@ -2,7 +2,7 @@
|
|||
# Contributor: David Campbell <davekong@archlinux.us>
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue