jobcore/autoconf/PKGBUILD

58 lines
1.6 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.72
pkgrel=01
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=(ba885c1319578d6c94d46e9b0dceb4014caafe2490e437a0dbca3f270a223f5a # autoconf-2.72.tar.xz
66930207a5e2e5edf7a135aca43c2f38a98333717d4b10be3f0b96566aadaa55) # autoconf-2.72.tar.xz.sig