diff options
author | a-wing | 2018-12-08 12:38:21 +0800 |
---|---|---|
committer | a-wing | 2018-12-08 12:38:21 +0800 |
commit | 65834694ea9a1e8b0f59cb8c4134f37ae86416f2 (patch) | |
tree | 742259364ac54e2eaeaf942de3c11ac9484332f9 | |
download | aur-65834694ea9a1e8b0f59cb8c4134f37ae86416f2.tar.gz |
Init ruby-globalid
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c6792ecbd339 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = ruby-globalid + pkgdesc = Refer to any model with a URI: gid://app/class/id + pkgver = 0.4.1 + pkgrel = 1 + url = http://www.rubyonrails.org + arch = any + license = MIT + depends = ruby + depends = ruby-activesupport + noextract = globalid-0.4.1.gem + options = !emptydirs + source = https://rubygems.org/downloads/globalid-0.4.1.gem + sha1sums = 79c51c607689deb06fed616ceaba4ddd7608f277 + +pkgname = ruby-globalid + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ed2e1da03bae --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Generated by gem2arch (https://github.com/anatol/gem2arch) +# Maintainer: a-wing <1@233.email> + +_gemname=globalid +pkgname=ruby-$_gemname +pkgver=0.4.1 +pkgrel=1 +pkgdesc='Refer to any model with a URI: gid://app/class/id' +arch=(any) +url='http://www.rubyonrails.org' +license=(MIT) +depends=(ruby ruby-activesupport) +options=(!emptydirs) +source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem) +noextract=($_gemname-$pkgver.gem) +sha1sums=('79c51c607689deb06fed616ceaba4ddd7608f277') + +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" +} |