summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonne Haß2015-06-16 12:28:58 +0200
committerJonne Haß2015-06-16 12:28:58 +0200
commite5d0dc0f93f6a8ed2f9224e5d96247feb06107f7 (patch)
tree675c3b4fdb5bb05e843eb5ec26f54dddb679787a
parent5b520328c325f94724bb530036a74e721447237a (diff)
downloadaur-e5d0dc0f93f6a8ed2f9224e5d96247feb06107f7.tar.gz
ruby{,2.1,2.0,1.9}-bundler: Unify PKGBUILDS
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD22
2 files changed, 15 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2b61c512ef3..82c93139257 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,14 @@
pkgbase = ruby1.9-bundler
pkgdesc = Manages an application's dependencies through its entire life, across many machines, systematically and repeatably.
pkgver = 1.10.3
- pkgrel = 1
+ pkgrel = 2
url = http://bundler.io
arch = any
license = MIT
depends = ruby1.9
noextract = bundler-1.10.3.gem
- source = http://rubygems.org/downloads/bundler-1.10.3.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/bundler-1.10.3.gem
sha256sums = 9c2c7093468c763eeadad47dae9de4d7ed2e6f08e80a130d1b0d6db6a46608cc
pkgname = ruby1.9-bundler
diff --git a/PKGBUILD b/PKGBUILD
index c4fbc77c501..1e48c43cddb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,24 +4,26 @@
pkgname=ruby1.9-bundler
_gemname=${pkgname#ruby1.9-}
pkgver=1.10.3
-pkgrel=1
+pkgrel=2
pkgdesc="Manages an application's dependencies through its entire life, across many machines, systematically and repeatably."
arch=('any')
url="http://bundler.io"
license=('MIT')
depends=('ruby1.9')
-source=(http://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
-noextract=(${_gemname}-${pkgver}.gem)
+options=('!emptydirs')
+source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
+noextract=("$_gemname-$pkgver.gem")
+sha256sums=('9c2c7093468c763eeadad47dae9de4d7ed2e6f08e80a130d1b0d6db6a46608cc')
package() {
- cd "${srcdir}"
+ cd "$srcdir"
local _gemdir="$(ruby-1.9 -rubygems -e'puts Gem.default_dir')"
- HOME=/tmp GEM_HOME="$_gemdir" GEM_PATH="$_gemdir" gem-1.9 install --no-ri --no-rdoc \
- --no-user-install --ignore-dependencies -i "${pkgdir}${_gemdir}" ${_gemname}-${pkgver}.gem
+ HOME="/tmp" GEM_HOME="$_gemdir" GEM_PATH="$_gemdir" gem-1.9 install --no-user-install --ignore-dependencies \
+ --no-ri --no-rdoc -i "$pkgdir/$_gemdir" "$_gemname-$pkgver.gem"
+ rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
+ install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
- install -d $pkgdir/usr/bin/
- ln -s $_gemdir/bin/bundle $pkgdir/usr/bin/bundle-1.9
+ install -d "$pkgdir/usr/bin/"
+ ln -s "$_gemdir/bin/bundle" "$pkgdir/usr/bin/bundle-1.9"
}
-
-sha256sums=('9c2c7093468c763eeadad47dae9de4d7ed2e6f08e80a130d1b0d6db6a46608cc')