summaryrefslogtreecommitdiff
path: root/libre/ruby/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/ruby/PKGBUILD')
-rw-r--r--libre/ruby/PKGBUILD33
1 files changed, 21 insertions, 12 deletions
diff --git a/libre/ruby/PKGBUILD b/libre/ruby/PKGBUILD
index d9a5b6890..41230a1a0 100644
--- a/libre/ruby/PKGBUILD
+++ b/libre/ruby/PKGBUILD
@@ -6,7 +6,7 @@
# Maintainer: André Silva <emulatorman@parabola.nu>
pkgname=(ruby ruby-docs)
-pkgver=2.2.2
+pkgver=2.2.3
_jsonver=1.8.1
pkgrel=1.parabola1
arch=(i686 x86_64)
@@ -15,27 +15,36 @@ license=(BSD custom)
makedepends=(gdbm openssl libffi doxygen graphviz libyaml ttf-dejavu tk)
options=(!emptydirs)
mksource=(http://cache.ruby-lang.org/pub/ruby/${pkgver:0:3}/ruby-${pkgver}.tar.xz
- https://github.com/flori/json/archive/v${_jsonver}.tar.gz
- json-${_jsonver}.gem
- libre.patch)
+ https://github.com/flori/json/archive/v${_jsonver}.tar.gz)
source=(https://repo.parabola.nu/other/ruby-libre/ruby-libre-${pkgver}.tar.xz
+ json-${_jsonver}.gem
+ remove-nonfree-json-references.patch
+ remove-nonfree-ruby-references.patch
gemrc)
-mksha1sums=('58cfec8db9b51ad1ff3bd2b9065da087913a6268'
- '043ed2df4b0ce2174c9c020ffcb4ec31f9fde560'
- '2cd288d00c5211e4c9d9338080b30af65cbb143a'
- '5595b4eeb67ac5f63d13630932b44bf2a8ed9197')
-sha1sums=('194cabc318c0ed63042059c5f60376f254c5b626'
+mksha1sums=('cff5421e3a7f6dbe72009ef44164d4b9e6d1801f'
+ '043ed2df4b0ce2174c9c020ffcb4ec31f9fde560')
+sha1sums=('36c5a0b8179179b91ee185796519a841dfa4b9be'
+ '2cd288d00c5211e4c9d9338080b30af65cbb143a'
+ '0ba1010a271e6fcc1734f7382b99963f46133ea5'
+ '57b7f137daf2e925739e8c1d1471b13b9bfa8bbd'
'dc536754c8fac2c3d82965c5a708cd8f79562d98')
mksource() {
rm -rv ruby-${pkgver}/ext/json
rm -rv ruby-${pkgver}/test/json
-
rm -rv json-${_jsonver}/ext
+}
+
+prepare() {
+ cd ruby-${pkgver}
+
+ install -D -m644 ${srcdir}/json-${_jsonver}.gem gems
+
+ patch -Np1 -i ${srcdir}/remove-nonfree-ruby-references.patch
- cp -v json-${_jsonver}.gem ruby-${pkgver}/gems
+ cd ${srcdir}/json-${_jsonver}
- patch -Np0 -i libre.patch
+ patch -Np1 -i ${srcdir}/remove-nonfree-json-references.patch
}
build() {