summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 5 insertions, 4 deletions
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