jobcore/libgpg-error/PKGBUILD

60 lines
2 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.46
pkgrel=02
pkgdesc="Support library for libgcrypt"
arch=(x86_64)
url="https://www.gnupg.org"
depends=('glibc' 'sh')
makedepends=('autoconf' 'automake' 'gettext')
#options=('debug') ##### uncomment this line to have the debug pkg produced
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)"
validpgpkeys=(6DAA6E64A76D2840571B4902528897B826403ADA # Werner Koch (dist signing 2020)
AC8E115BF73E2D8D47FA9908E98E9B2D19C6C8BD) # Niibe Yutaka (GnuPG Release Key)
# 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!
## with 1.45-2 they corrected the error.
sha256sums=(b7e11a64246bbe5ef37748de43b245abd72cfcd53c9ae5e7fc5ca59f1c81268d # libgpg-error-1.46.tar.bz2
05f4d6be30fdc78d4a04ac30414eca8a8616f62b75786bed7e8f96d427f7dfa5) # libgpg-error-1.46.tar.bz2.sig