[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>
|
# Contributor: David Campbell <davekong@archlinux.us>
|
||||||
pkgname=ruby-xapian-full
|
pkgname=ruby-xapian-full
|
||||||
pkgver=1.2.3
|
pkgver=1.2.3
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc="Xapian bindings for Ruby without dependency on system Xapian library"
|
pkgdesc="Xapian bindings for Ruby without dependency on system Xapian library"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
url="http://rubygems.org/gems/xapian-full"
|
url="http://rubygems.org/gems/xapian-full"
|
||||||
|
@ -18,7 +18,7 @@ md5sums=('772947e9b6a03f37a00c361ac7492ad6'
|
||||||
options=('!makeflags' '!libtool')
|
options=('!makeflags' '!libtool')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $srcdir
|
cd "$srcdir"
|
||||||
local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
|
local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
|
||||||
|
|
||||||
#patch Rakefile
|
#patch Rakefile
|
||||||
|
@ -27,16 +27,19 @@ build() {
|
||||||
rm xapian-full-${pkgver}.gem
|
rm xapian-full-${pkgver}.gem
|
||||||
cd xapian-full-${pkgver}
|
cd xapian-full-${pkgver}
|
||||||
patch -p1 < ../Rakefile.patch
|
patch -p1 < ../Rakefile.patch
|
||||||
|
|
||||||
echo "Building gem..."
|
echo "Building gem..."
|
||||||
gem build xapian-full.gemspec
|
gem build xapian-full.gemspec
|
||||||
mv xapian-full-${pkgver}.gem ..
|
mv xapian-full-${pkgver}.gem ..
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf xapian-full-${pkgver}
|
rm -rf xapian-full-${pkgver}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
package(){
|
||||||
|
cd "$srcdir"
|
||||||
echo "Installing gem..."
|
echo "Installing gem..."
|
||||||
gem install --ignore-dependencies --verbose -i "$pkgdir$_gemdir" xapian-full-$pkgver.gem \
|
gem install --no-user-install --ignore-dependencies --verbose -i "$pkgdir$_gemdir" -n "$pkgdir"/usr/bin xapian-full-$pkgver.gem
|
||||||
-n "$pkgdir/usr/bin"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim:set ts=2 sw=2 et:
|
# vim:set ts=2 sw=2 et:
|
||||||
|
|
Loading…
Reference in a new issue