jobcore/libgpg-error/PKGBUILD

59 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.48
pkgrel=01
pkgdesc="Support library for libgcrypt"
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}
install -vDm 644 COPYING{,.LIB} -t "${pkgdir}"/usr/share/licenses/${pkgname}/
make DESTDIR="${pkgdir}/" install
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(LGPL-2.1-or-later 'BSD-3-Clause OR LGPL-2.1-or-later' FSFULLR GPL-2.0-or-later)
#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)
sha256sums=(89ce1ae893e122924b858de84dc4f67aae29ffa610ebf668d5aa539045663d6f # libgpg-error-1.48.tar.bz2
a3f27cd6818fe01e559e59142b321ab41b155f8290c1cdc7aee53ee25049478d) # libgpg-error-1.48.tar.bz2.sig
## e5ef67ec512377b09540fcc4f3c56be236d82452001cc5e7d8f5bc897508e09c libgpg-error-1.48-01-x86_64.pkg.tar.lz