summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Reinert2016-05-15 14:45:21 +0200
committerJoakim Reinert2016-05-15 14:45:21 +0200
commit5e8ae293ac4f3f8251cd7d9cd3d26624acbcf208 (patch)
treef318e26db47b1bfaaca62282cb7861aeb856e8eb
downloadaur-5e8ae293ac4f3f8251cd7d9cd3d26624acbcf208.tar.gz
Initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--.gitignore2
-rw-r--r--PKGBUILD22
3 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a793325c037
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by mksrcinfo v8
+# Sun May 15 12:45:12 UTC 2016
+pkgbase = ruby-filemagic
+ pkgdesc = Ruby bindings to the magic(4) library
+ pkgver = 0.7.1
+ pkgrel = 1
+ url = http://github.com/blackwinter/ruby-filemagic
+ arch = i686
+ arch = x86_64
+ license = Ruby
+ depends = ruby
+ noextract = ruby-filemagic-0.7.1.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/ruby-filemagic-0.7.1.gem
+ sha1sums = f3d4ac362cddbcd446ee2dab2b7a80d887f790af
+
+pkgname = ruby-filemagic
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..7d4805bf838
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/*.pkg.tar.xz
+/*.gem
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..66840087056
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+# Generated by gem2arch (https://github.com/anatol/gem2arch)
+# Maintainer: Joakim Reinert <mail@jreinert.com>
+
+_gemname=ruby-filemagic
+pkgname=$_gemname
+pkgver=0.7.1
+pkgrel=1
+pkgdesc='Ruby bindings to the magic(4) library'
+arch=(i686 x86_64)
+url='http://github.com/blackwinter/ruby-filemagic'
+license=(Ruby)
+depends=(ruby)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha1sums=('f3d4ac362cddbcd446ee2dab2b7a80d887f790af')
+
+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"
+}