summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Maunier2018-12-14 16:08:45 +0100
committerFlorian Maunier2018-12-14 16:08:45 +0100
commitb729cda96042333dff8255b69c1644df2618994c (patch)
treebbb823508863e93c0dcf04e7b9f4c928adf89986
downloadaur-ruby-clocale.tar.gz
Initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD23
2 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..92518c648f1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = ruby-clocale
+ pkgdesc = A Ruby gem that wraps C locale functions.
+ pkgver = 0.0.4
+ pkgrel = 1
+ url = https://github.com/avdv/clocale
+ arch = i686
+ arch = x86_64
+ license = MIT
+ depends = ruby
+ noextract = clocale-0.0.4.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/clocale-0.0.4.gem
+ sha1sums = c6d6ae6b1c18dcd165e3729ba505679a8fbb135d
+
+pkgname = ruby-clocale
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6414bd99321
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Generated by gem2arch (https://github.com/anatol/gem2arch)
+# Maintainer: Florian Maunier <fmauneko@dissidence.ovh>
+
+_gemname=clocale
+pkgname=ruby-$_gemname
+pkgver=0.0.4
+pkgrel=1
+pkgdesc='A Ruby gem that wraps C locale functions.'
+arch=(i686 x86_64)
+url='https://github.com/avdv/clocale'
+license=(MIT)
+depends=(ruby)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha1sums=('c6d6ae6b1c18dcd165e3729ba505679a8fbb135d')
+
+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/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}