jobcore/libgpg-error/PKGBUILD

53 lines
1.7 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=libgpg-error
pkgver=1.45
pkgrel=01
pkgdesc="Support library for libgcrypt"
arch=(x86_64)
url="https://www.gnupg.org"
depends=('glibc' 'sh')
makedepends=('autoconf' 'automake' 'gettext')
source=(https://www.gnupg.org/ftp/gcrypt/libgpg-error/${pkgname}-${pkgver}.tar.bz2{,.sig})
# https://www.gnupg.org/download/integrity_check.html
prepare() {
cd ${pkgname}-${pkgver}
autoreconf -vfi
}
build() {
cd ${pkgname}-${pkgver}
./configure --prefix=/usr
make
}
check() {
cd ${pkgname}-${pkgver}
make check
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}/" install
}
#---- license gpg-key sha256sums ----
license=('LGPL')
validpgpkeys=(D8692123C4065DEA5E0F3AB5249B39D24F25E3B6 # Werner Koch
AC8E115BF73E2D8D47FA9908E98E9B2D19C6C8BD # NIIBE Yutaka (GnuPG Release Key) <gniibe@fsij.org>
# 031EC2536E580D8EA286A9F22071B08A33BD3F06 # NIIBE Yutaka (GnuPG Release Key) <gniibe@fsij.org>
6DAA6E64A76D2840571B4902528897B826403ADA) # "Werner Koch (dist signing 2020)"
# Arch lists a different key than what the package is signed by, nevertheless their package is built, which
# indicates they are building disregarding signature errors. And I thought it was only Obarun being negligent!
sha256sums=(570f8ee4fb4bff7b7495cff920c275002aea2147e9a1d220c068213267f80a26 # libgpg-error-1.45.tar.bz2
51736fef75ae3c020512f6987b046698bd418d960eb0e2fe1a0860749da21444) # libgpg-error-1.45.tar.bz2.sig