summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas 'Segaja' Schleifer2021-03-29 21:09:00 +0200
committerAndreas 'Segaja' Schleifer2021-03-29 21:09:00 +0200
commitd37909800215caa9541ce234e8023b0426cf28b4 (patch)
tree3be38cf69e08a6722eb70b58019d9f4e0919f99a
parentd885e7e94ebde5238ad67cc9b0ee3590d0352d5f (diff)
downloadaur-d37909800215caa9541ce234e8023b0426cf28b4.tar.gz
update PKGBUILD
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD30
2 files changed, 24 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 33f4d61cfff5..83049cf8b7f1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,10 +1,13 @@
pkgbase = ruby-sprockets-rails
pkgdesc = Sprockets Rails integration
pkgver = 3.2.2
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/rails/sprockets-rails
arch = any
license = MIT
+ makedepends = ruby-bundler
+ makedepends = ruby-rails
+ makedepends = ruby-rake
depends = ruby
depends = ruby-actionpack
depends = ruby-activesupport
diff --git a/PKGBUILD b/PKGBUILD
index 8ceb12746cdf..31b6d6b4bb18 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,39 +3,49 @@
# Contributor: Anatol Pomozov <anatol.pomozov@gmail.com>
# Contributor: Nathan Phillip Brink <binki@gentoo.org>
-_gemname=sprockets-rails
-pkgname=ruby-${_gemname}
+_gemname="sprockets-rails"
+pkgname="ruby-${_gemname}"
pkgver=3.2.2
-pkgrel=1
+pkgrel=2
pkgdesc='Sprockets Rails integration'
-arch=(any)
+arch=('any')
url='https://github.com/rails/sprockets-rails'
-license=(MIT)
-depends=(ruby ruby-actionpack ruby-activesupport ruby-sprockets)
+license=('MIT')
options=(!emptydirs)
+depends=('ruby' 'ruby-actionpack' 'ruby-activesupport' 'ruby-sprockets')
+makedepends=('ruby-bundler' 'ruby-rails' 'ruby-rake')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/rails/sprockets-rails/archive/v${pkgver}.tar.gz")
sha512sums=('048f48930325316ac28d721a2c33ba60767dfec9456b0705e90363a1c81c8876ec6f99d65ce533d5a0704e1f67a33fcac5cd675aec5cc3c3f1cd896d518865a9')
prepare() {
cd "${_gemname}-${pkgver}"
- sed -r 's|~>|>=|g' -i "${_gemname}.gemspec"
+ # update gemspec/Gemfile to allow newer version of the dependencies
+ sed --in-place --regexp-extended 's|~>|>=|g' "${_gemname}.gemspec"
}
build() {
cd "${_gemname}-${pkgver}"
- gem build "${_gemname}.gemspec"
+ rake build
}
+# test have been disabled for now: https://github.com/rails/sprockets-rails/issues/473
+#check() {
+# cd "${_gemname}-${pkgver}"
+#
+# rake test
+#}
+
package() {
cd "${_gemname}-${pkgver}"
local _gemdir="$(gem env gemdir)"
- gem install --ignore-dependencies --no-user-install -i "${pkgdir}/${_gemdir}" -n "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"
+ gem install --ignore-dependencies --no-user-install --install-dir "${pkgdir}/${_gemdir}" --bindir "${pkgdir}/usr/bin" "pkg/${_gemname}-${pkgver}.gem"
rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
- install -D -m644 MIT-LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm 644 CONTRIBUTING.md README.md --target-directory "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 MIT-LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}