diff options
author | Dennis Schubert | 2016-06-16 06:27:16 +0200 |
---|---|---|
committer | Dennis Schubert | 2016-06-16 06:27:16 +0200 |
commit | 505e8624710d3f4f07c7e9acd5f5a50e4837c99a (patch) | |
tree | 312e158a0059760e264061c8d0b0a6f1c1513ba9 | |
parent | 187f55402c05c365917b039ad306aff9a2060b45 (diff) | |
download | aur-505e8624710d3f4f07c7e9acd5f5a50e4837c99a.tar.gz |
Enforce styleguide
-rw-r--r-- | PKGBUILD | 40 |
1 files changed, 20 insertions, 20 deletions
@@ -1,4 +1,5 @@ -# Maintainer: Henrik Hodne <henrik@hodne.io> +# Contributor: Henrik Hodne <henrik@hodne.io> +# Maintainer: Dennis Schubert <mail@dennis-schubert.de> pkgname=ruby-install pkgver=0.6.0 @@ -10,32 +11,31 @@ license=('MIT') depends=('bash') optdepends=('zsh') makedepends=('gnupg') -source=(https://github.com/postmodern/${pkgname}/archive/v${pkgver}.tar.gz) +source=("https://github.com/postmodern/${pkgname}/archive/v${pkgver}.tar.gz") sha256sums=('3cc90846ca972d88b601789af2ad9ed0a496447a13cb986a3d74a4de062af37d') 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 + 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 + # Check key + if gpg --verify ${pkgname}-${pkgver}.tar.gz.asc ${srcdir}/v${pkgver}.tar.gz; then + msg "Verification of package was successful." 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" + 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 + cd "$srcdir/$pkgname-$pkgver" + make PREFIX="${pkgdir}/usr" install } |