summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfarawayer2017-01-10 06:08:42 +0300
committerfarawayer2017-01-10 06:08:42 +0300
commit37ca4ea7caa6b26e52d2df52044d0cc52ecbf8f2 (patch)
tree430c4efb47c9cf1948e6e7c37b9e11a129055f82
downloadaur-37ca4ea7caa6b26e52d2df52044d0cc52ecbf8f2.tar.gz
init
-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..dabd4b9c883
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = ruby-fastimage
+ pkgdesc = FastImage - Image info fast
+ pkgver = 2.0.1
+ pkgrel = 1
+ url = http://github.com/sdsykes/fastimage
+ arch = any
+ license = MIT
+ depends = ruby
+ depends = ruby-addressable
+ noextract = fastimage-2.0.1.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/fastimage-2.0.1.gem
+ sha1sums = 653396016413b5b8d10cfb8442bc94ffbca05b99
+
+pkgname = ruby-fastimage
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0b52dd94125
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Generated by gem2arch (https://github.com/anatol/gem2arch)
+# Maintainer: farawayer <farwayer@gmail.com>
+
+_gemname=fastimage
+pkgname=ruby-$_gemname
+pkgver=2.0.1
+pkgrel=1
+pkgdesc='FastImage - Image info fast'
+arch=(any)
+url='http://github.com/sdsykes/fastimage'
+license=(MIT)
+depends=(ruby ruby-addressable)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha1sums=('653396016413b5b8d10cfb8442bc94ffbca05b99')
+
+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"
+}