summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMassimiliano Torromeo2017-05-09 10:17:48 +0200
committerMassimiliano Torromeo2017-05-09 10:17:48 +0200
commit7cc960742ccc30cb36269fe7b7cb8ba2dddc0656 (patch)
tree0cd142cac309a796fbe26761f0522b5cf19ba85d
parent54aff92a714f50438035ebc783674b2b946ad700 (diff)
downloadaur-7cc960742ccc30cb36269fe7b7cb8ba2dddc0656.tar.gz
Fixed build of vagrant-libvirt gem
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD16
2 files changed, 13 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ec9699e1ec2..862b7ae689b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,14 @@
# Generated by mksrcinfo v8
-# Tue May 9 07:27:53 UTC 2017
+# Tue May 9 08:17:34 UTC 2017
pkgbase = vagrant-libvirt
pkgdesc = libvirt provider plugin for Vagrant
pkgver = 0.0.40
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/vagrant-libvirt/vagrant-libvirt
arch = i686
arch = x86_64
license = MIT
+ makedepends = git
depends = vagrant
depends = libvirt
depends = openssl-1.0
diff --git a/PKGBUILD b/PKGBUILD
index ff1d42612c2..5d6aff63111 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=vagrant-libvirt
pkgver=0.0.40
-pkgrel=2
+pkgrel=3
_foglibvirtver=0.3.0
_fogcorever=1.43.0
_fogjsonver=1.0.2
@@ -15,6 +15,7 @@ arch=(i686 x86_64)
url="https://github.com/vagrant-libvirt/vagrant-libvirt"
license=("MIT")
depends=("vagrant" "libvirt" "openssl-1.0")
+makedepends=("git")
# "https://rubygems.org/downloads/vagrant-libvirt-$pkgver.gem"
source=("https://github.com/vagrant-libvirt/vagrant-libvirt/archive/$pkgver/$pkgname-$pkgver.tar.gz"
"nokogiri-version.patch"
@@ -46,6 +47,8 @@ sha256sums=('9baba0c338c89acd9d0e594467ba9c8eef1d07039bb6da4a11e432e934b288a3'
prepare() {
cd "$srcdir/$pkgname-$pkgver"
patch -p1 -i "$srcdir/nokogiri-version.patch"
+ git init
+ git add .
}
build() {
@@ -57,12 +60,13 @@ package() {
cd "$srcdir"
mv $pkgname-$pkgver/$pkgname-$pkgver.gem .
- export CONFIGURE_ARGS="with-ldflags='-L/opt/vagrant/embedded/lib -l:libruby.so.2.2' with-libvirt-include=/usr/include with-libvirt-lib=/usr/lib"
- export GEM_HOME=/opt/vagrant/embedded/gems
- export GEM_PATH=$GEM_HOME
- export PATH=/opt/vagrant/embedded/bin:$PATH
+ local GEM_HOME=/opt/vagrant/embedded/gems
for gem in ${noextract[@]}; do
- /opt/vagrant/embedded/bin/gem install --ignore-dependencies --no-user-install -i "$pkgdir$GEM_HOME" $gem
+ CONFIGURE_ARGS="with-ldflags='-L/opt/vagrant/embedded/lib -l:libruby.so.2.2' with-libvirt-include=/usr/include with-libvirt-lib=/usr/lib" \
+ GEM_HOME=$GEM_HOME \
+ GEM_PATH=$GEM_HOME \
+ PATH=/opt/vagrant/embedded/bin:$PATH \
+ /opt/vagrant/embedded/bin/gem install --ignore-dependencies --no-user-install -N -i "$pkgdir$GEM_HOME" $gem
done
}