summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfarawayer2017-01-10 06:05:33 +0300
committerfarawayer2017-01-10 06:05:33 +0300
commit573226132921f752912a6d73972077aaecc6c27a (patch)
treeaeb014fb516874b2d8380997b4b52621d08984dc
downloadaur-573226132921f752912a6d73972077aaecc6c27a.tar.gz
init
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD23
2 files changed, 37 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3de40e029eb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = ruby-babosa
+ pkgdesc = A library for creating slugs.
+ pkgver = 1.0.2
+ pkgrel = 1
+ url = http://github.com/norman/babosa
+ arch = any
+ depends = ruby
+ noextract = babosa-1.0.2.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/babosa-1.0.2.gem
+ sha1sums = 1e3301f6c9d4025a3eb0a1124406e1528c35df95
+
+pkgname = ruby-babosa
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..071b256c663
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Generated by gem2arch (https://github.com/anatol/gem2arch)
+# Maintainer: farawayer <farwayer@gmail.com>
+
+_gemname=babosa
+pkgname=ruby-$_gemname
+pkgver=1.0.2
+pkgrel=1
+pkgdesc='A library for creating slugs.'
+arch=(any)
+url='http://github.com/norman/babosa'
+license=()
+depends=(ruby)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha1sums=('1e3301f6c9d4025a3eb0a1124406e1528c35df95')
+
+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"
+}