summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD9
2 files changed, 8 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b7dc2a51909..3a2c5a5f352 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -8,10 +8,10 @@ pkgbase = ruby-koala
depends = ruby
depends = ruby-faraday
depends = ruby-addressable
- noextract = $_gemname-$pkgver.gem
+ noextract = ruby-koala-3.0.0.gem
options = !emptydirs
- source = https://rubygems.org/downloads/koala-3.0.0.gem
- md5sums = 32826fd1865ec601a321399e4371a699
+ source = ruby-koala-3.0.0.gem::https://rubygems.org/downloads/koala-3.0.0.gem
+ sha256sums = 9ca876db37f2cda787c18f79141ccec4293a7b203e5336dd32eb718b5ca4f6cc
pkgname = ruby-koala
diff --git a/PKGBUILD b/PKGBUILD
index 4c950da1052..6e799936979 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,12 +10,13 @@ url='https://github.com/arsduo/koala'
license=('MIT')
depends=('ruby' 'ruby-faraday' 'ruby-addressable')
options=('!emptydirs')
-source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
-noextract=('$_gemname-$pkgver.gem')
-md5sums=('32826fd1865ec601a321399e4371a699')
+source=("${pkgname}-${pkgver}.gem::https://rubygems.org/downloads/$_gemname-$pkgver.gem")
+noextract=("${pkgname}-${pkgver}.gem")
+sha256sums=('9ca876db37f2cda787c18f79141ccec4293a7b203e5336dd32eb718b5ca4f6cc')
package() {
local _gemdir="$(ruby -e'puts Gem.default_dir')"
- gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
+ gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" ${pkgname}-${pkgver}.gem
rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
+ install -Dm644 "${pkgdir}/usr/lib/ruby/gems/2.7.0/gems/koala-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
} \ No newline at end of file