jobcore/autoconf/PKGBUILD

62 lines
1.8 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=autoconf
pkgver=2.71
pkgrel=04
pkgdesc="A GNU tool for automatically configuring source code"
url="https://www.gnu.org/software/autoconf"
depends=('awk' 'm4' 'diffutils' 'perl' 'sh')
checkdepends=('gcc-fortran')
source=("https://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz"{,.sig}
$pkgname-2.71-bash5.2.patch::https://github.com/autotools-mirror/autoconf/commit/412166e185c00d6eacbe67dfcb0326f622ec4020.patch )
prepare() {
# fix build for bash >= 5.2
patch -Np1 -d $pkgname-$pkgver -i ../$pkgname-2.71-bash5.2.patch
}
build() {
cd "${pkgname}-${pkgver}"
./configure --prefix=/usr
make
}
check() {
cd "${pkgname}-${pkgver}"
# disable test 227 as it is broken
make check TESTSUITEFLAGS="1-226 228-"
}
package() {
cd "${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
# license exception
install -Dm644 COPYING.EXCEPTION "$pkgdir"/usr/share/licenses/autoconf/COPYING.EXCEPTION
# remove unwanted file
rm -f "$pkgdir"/usr/share/info/standards.info
}
#---- arch license gpg-key and sha256sums ----
arch=(x86_64)
license=('GPL2' 'GPL3' 'custom')
validpgpkeys=('82F854F3CE73174B8B63174091FCC32B6769AA64') # Zack Weinberg
sha256sums=(f14c83cfebcc9427f2c3cea7258bd90df972d92eb26752da4ddad81c87a0faa4 # autoconf-2.71.tar.xz
f33796ff686c45ee946d5862f46b776cf69cad68bf6861ce20847459a3a18a44 # autoconf-2.71.tar.xz.sig
ee07bb3f9692bed2b7689bd361ae4e2e9a1bd852864a0c98f90b7b4c8beddfe4) # autoconf-2.71-bash5.2.patch
## 8738cb25e4d5a97cf20f62ffedf5c8d00a60dda11165f2510651c9e9b98370d2 autoconf-2.71-04-x86_64.pkg.tar.lz