ArchLinux/pkgbuild/ruby-xapian-full/PKGBUILD

46 lines
1.3 KiB
Text
Raw Normal View History

2011-05-04 15:48:49 +02:00
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
# Contributor: David Campbell <davekong@archlinux.us>
pkgname=ruby-xapian-full
pkgver=1.2.3
pkgrel=3
2011-05-04 15:48:49 +02:00
pkgdesc="Xapian bindings for Ruby without dependency on system Xapian library"
arch=('i686' 'x86_64')
2011-07-20 18:01:43 +02:00
url="http://rubygems.org/gems/xapian-full"
2011-05-04 15:48:49 +02:00
license=('GPL')
depends=('ruby' 'util-linux')
makedepends=('rubygems')
provides=('xapian-ruby-bindings')
conflicts=('xapian-ruby-bindings')
source=("http://gems.rubyforge.org/gems/xapian-full-${pkgver}.gem" "Rakefile.patch")
noextract=("xapian-full-${pkgver}.gem")
md5sums=('772947e9b6a03f37a00c361ac7492ad6'
'3c88149fb08d46bcd1e49148afdd1384')
options=('!makeflags' '!libtool')
build() {
cd "$srcdir"
2011-05-04 15:48:49 +02:00
local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
#patch Rakefile
echo "Patching Rakefile ..."
gem unpack xapian-full-${pkgver}.gem
rm xapian-full-${pkgver}.gem
cd xapian-full-${pkgver}
patch -p1 < ../Rakefile.patch
2011-05-04 15:48:49 +02:00
echo "Building gem..."
gem build xapian-full.gemspec
mv xapian-full-${pkgver}.gem ..
cd ..
rm -rf xapian-full-${pkgver}
}
package(){
cd "$srcdir"
2011-05-04 15:48:49 +02:00
echo "Installing gem..."
gem install --no-user-install --ignore-dependencies --verbose -i "$pkgdir$_gemdir" -n "$pkgdir"/usr/bin xapian-full-$pkgver.gem
2011-05-04 15:48:49 +02:00
}
# vim:set ts=2 sw=2 et: