summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authora-wing2018-12-12 19:08:04 +0800
committera-wing2018-12-12 19:08:04 +0800
commit563f64da9e735a5470c876906406b1d5bceeccd9 (patch)
tree84df00a54d6c8b8fd3688c56d28a6387545fa928 /PKGBUILD
downloadaur-563f64da9e735a5470c876906406b1d5bceeccd9.tar.gz
Init ruby-marcel
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD23
1 files changed, 23 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9fb59c5b58e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Generated by gem2arch (https://github.com/anatol/gem2arch)
+# Maintainer: a-wing <1@233.email>
+
+_gemname=marcel
+pkgname=ruby-$_gemname
+pkgver=0.3.3
+pkgrel=1
+pkgdesc='Simple mime type detection using magic numbers, filenames, and extensions'
+arch=(any)
+url='https://github.com/basecamp/marcel'
+license=(MIT)
+depends=(ruby ruby-mimemagic)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha1sums=('a4cf7bd4bd3cc8da6275133dbc9745458653fdf4')
+
+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
+ rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
+ install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/MIT-LICENSE" "$pkgdir/usr/share/licenses/$pkgname/MIT-LICENSE"
+}