summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcourk2017-02-05 05:14:13 +0100
committercourk2017-02-05 05:14:13 +0100
commit44afd66a8ca677790c4997b056f07dd5471d5b01 (patch)
treed71e0c4d31f34b30ab910e9f07df93f66749094d
downloadaur-44afd66a8ca677790c4997b056f07dd5471d5b01.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD22
2 files changed, 37 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..00ae1c3f4b9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = ruby-kaitai-struct
+ pkgdesc = Kaitai Struct: runtime library for Ruby
+ pkgver = 0.6
+ pkgrel = 1
+ url = http://kaitai.io
+ arch = any
+ license = MIT
+ depends = ruby
+ noextract = kaitai-struct-0.6.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/kaitai-struct-0.6.gem
+ sha1sums = 1fa114752e87ed25230022d4e696656bd210f56d
+
+pkgname = ruby-kaitai-struct
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b476ecfe102
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+# Generated by gem2arch (https://github.com/anatol/gem2arch)
+# Maintainer: courk <courk at courk dot fr>
+
+_gemname=kaitai-struct
+pkgname=ruby-$_gemname
+pkgver=0.6
+pkgrel=1
+pkgdesc='Kaitai Struct: runtime library for Ruby'
+arch=(any)
+url='http://kaitai.io'
+license=(MIT)
+depends=(ruby)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha1sums=('1fa114752e87ed25230022d4e696656bd210f56d')
+
+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"
+}