summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMario Finelli2018-12-16 09:31:48 -0500
committerMario Finelli2018-12-16 09:31:48 -0500
commit551de6acd7d2e8a4392319463917a7a2db4c3445 (patch)
tree0047f89cef8a0d227a73dcf69e7c4784365b2b05 /PKGBUILD
parent289b5fe4b432f0633f49a5e5eb4942b3b9dc8858 (diff)
downloadaur-ruby-mimemagic.tar.gz
Bump to 0.3.2
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 15 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 28727b09393..795d8eba179 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,8 @@
-# Generated with gembuild (https://github.com/mfinelli/gembuild)
-# Maintainer: Mario Finelli <mario dot finelli at yahoo dot com>
+# Maintainer: Mario Finelli <mario at finel dot li>
_gemname=mimemagic
pkgname=ruby-$_gemname
-pkgver=0.3.0
+pkgver=0.3.2
pkgrel=1
pkgdesc='Fast mime detection by extension or content in pure ruby (Uses freedesktop.org.xml shared-mime-info database).'
arch=('any')
@@ -12,13 +11,22 @@ license=('MIT')
options=(!emptydirs)
noextract=($_gemname-$pkgver.gem)
depends=('ruby')
-makedepends=('rubygems')
+makedepends=(rubygems ruby-rdoc)
source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
-sha256sums=('a9a1de1e5750b4e59d1126a84dd67ae55595feda835f1659e3fe686917c13480')
+sha256sums=('78b0601d780a3a0f4bb48c88e03af6dc06610a59bc0f10a877deb50d6b602b02')
package() {
- cd "$srcdir"
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" \
+ $_gemname-$pkgver.gem
+
+ rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
+
+ install -Dm0644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE" \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}