diff options
author | Henrik Hodne | 2015-09-21 18:08:50 +0200 |
---|---|---|
committer | Henrik Hodne | 2015-09-21 18:08:50 +0200 |
commit | 0890e59862d1ba83e32e8dc10aa13bb3f25e6936 (patch) | |
tree | 4349ba4b03d2a0704476a6d32defb1b15d30e227 | |
download | aur-0890e59862d1ba83e32e8dc10aa13bb3f25e6936.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 41 |
3 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3e4e71121449 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = ruby-install + pkgdesc = Installs Ruby, JRuby, Rubinius, MagLev or MRuby. + pkgver = 0.5.0 + pkgrel = 1 + url = https://github.com/postmodern/ruby-install + arch = any + license = MIT + makedepends = gnupg + depends = bash + optdepends = zsh + source = https://github.com/postmodern/ruby-install/archive/v0.5.0.tar.gz + sha256sums = aa4448c2c356510cc7c2505961961a17bd3f3435842831e04c8516eb703afd19 + +pkgname = ruby-install + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..3c42ccf1ff76 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +src/ +pkg/ +v*.tar.gz +ruby-install-*.pkg.tar.xz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c2a9d78759c9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Henrik Hodne <henrik@hodne.io> + +pkgname=ruby-install +pkgver=0.5.0 +pkgrel=1 +pkgdesc="Installs Ruby, JRuby, Rubinius, MagLev or MRuby." +arch=(any) +url="https://github.com/postmodern/ruby-install" +license=('MIT') +depends=('bash') +optdepends=('zsh') +makedepends=('gnupg') +source=(https://github.com/postmodern/${pkgname}/archive/v${pkgver}.tar.gz) +sha256sums=('aa4448c2c356510cc7c2505961961a17bd3f3435842831e04c8516eb703afd19') + +prepare() { + if gpg --fingerprint 0xB9515E77 >/dev/null 2>&1; then + # Download key + msg "Downloading package signature" + curl -L -o ${pkgname}-${pkgver}.tar.gz.asc https://raw.github.com/postmodern/${pkgname}/master/pkg/${pkgname}-${pkgver}.tar.gz.asc -s + + # Check key + if gpg --verify ${pkgname}-${pkgver}.tar.gz.asc ${srcdir}/v${pkgver}.tar.gz; then + msg "Verification of package was successful." + else + msg "Verification of package failed. Please check yourself with:" + echo "gpg --verify ${pkgname}-${pkgver}.tar.gz.asc ${srcdir}/v${pkgver}.tar.gz" + fi + else + printf "\n\n" + msg "Please import the gpg key of the ruby-install author, to check package integrity:" + msg "https://postmodern.github.io/contact.html#pgp" + printf "\n\n" + fi +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make PREFIX="${pkgdir}/usr" install +} |