diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 22 |
3 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2ce4a3974821 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +# Generated by mksrcinfo v8 +# Wed Dec 28 02:14:02 UTC 2016 +pkgbase = ruby-url_mount + pkgdesc = Glue to allow mounted rack applications to know where they're mounted. + pkgver = 0.2.1 + pkgrel = 1 + url = https://github.com/hassox/url_mount + arch = any + license = MIT + depends = ruby + depends = ruby-rack + noextract = url_mount-0.2.1.gem + options = !emptydirs + source = https://rubygems.org/downloads/url_mount-0.2.1.gem + sha256sums = 44b98f9d08ed550a1421679fdf2e1c112bce66950f87a63c6205d4783a0566ad + +pkgname = ruby-url_mount + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..f71c635dafda --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!PKGBUILD +!.SRCINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ee0ed51c7960 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: Mario Finelli <mario at finel dot li> + +_gemname=url_mount +pkgname=ruby-$_gemname +pkgver=0.2.1 +pkgrel=1 +pkgdesc="Glue to allow mounted rack applications to know where they're mounted." +arch=(any) +url='https://github.com/hassox/url_mount' +license=(MIT) +depends=(ruby ruby-rack) +options=(!emptydirs) +source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem) +noextract=($_gemname-$pkgver.gem) +sha256sums=('44b98f9d08ed550a1421679fdf2e1c112bce66950f87a63c6205d4783a0566ad') + +package() { + cd "$srcdir" + 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 +} |