blob: 14fccdcc8883b679bb58a92b305b1e50a9d97fd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Contributor: Henrik Hodne <henrik@hodne.io>
# Maintainer: Dennis Schubert <mail@dennis-schubert.de>
pkgname=ruby-install
pkgver=0.9.4
pkgrel=1
pkgdesc="Installs Ruby, JRuby, Rubinius, MRuby or TruffleRuby."
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=('d65f6fe5a73a24bb9c764e3d79b5f902caef6ffaced58db667af26f00065fc03')
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
}
|