diff options
author | Jonne Haß | 2015-12-08 03:01:23 +0100 |
---|---|---|
committer | Jonne Haß | 2015-12-10 22:03:38 +0100 |
commit | 18ab5a477ec03686b1f2bc60d9034f8d66fdd657 (patch) | |
tree | 36af2b044abbb3bd22ffbdbaa6ddeaa39ab47672 | |
download | aur-ruby-securecompare.tar.gz |
ruby-securecompare: add
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e8a1cb0acf82 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +# Generated by mksrcinfo v8 +# Tue Dec 8 02:03:30 UTC 2015 +pkgbase = ruby-securecompare + pkgdesc = securecompare is a gem that implements a constant time string comparison method safe for use in cryptographic functions. + pkgver = 1.0.0 + pkgrel = 1 + url = https://github.com/samuelkadolph/securecompare + arch = any + license = MIT + depends = ruby + noextract = securecompare-1.0.0.gem + options = !emptydirs + source = https://rubygems.org/downloads/securecompare-1.0.0.gem + sha1sums = e8491f6d38e5d2154ba4c5a2e5638a3e1a2793fc + +pkgname = ruby-securecompare + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..16c0f92056e2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Generated by gem2arch (https://github.com/anatol/gem2arch) +# Maintainer: Jonne Haß <me@jhass.eu> + +_gemname=securecompare +pkgname=ruby-$_gemname +pkgver=1.0.0 +pkgrel=1 +pkgdesc='securecompare is a gem that implements a constant time string comparison method safe for use in cryptographic functions.' +arch=(any) +url='https://github.com/samuelkadolph/securecompare' +license=(MIT) +depends=(ruby) +options=(!emptydirs) +source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem) +noextract=($_gemname-$pkgver.gem) +sha1sums=('e8491f6d38e5d2154ba4c5a2e5638a3e1a2793fc') + +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/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |