main/make3.81: new package (MR 5534)

This package provides GNU Make 3.81 instead of 4.x. It helps to build
old BSP kernels that depends on old make's behavior.

Co-authored-by: Oliver Smith <ollieparanoid@postmarketos.org>
Signed-off-by: Masanori Ogino <mogino@acm.org>
[ci:skip-build]: already built successfully in CI
This commit is contained in:
Masanori Ogino 2024-08-26 23:35:03 +09:00
parent e7a54473b0
commit 1a4cb40c1e
No known key found for this signature in database
GPG Key ID: 4A4CED6D7EDF950A
2 changed files with 1946 additions and 0 deletions

39
main/make3.81/APKBUILD Normal file
View File

@ -0,0 +1,39 @@
pkgname=make3.81
pkgver=3.81
pkgrel=0
pkgdesc="GNU make utility to maintain groups of programs"
url="https://www.gnu.org/software/make"
arch="all"
license="GPL-2.0-or-later"
source="
https://ftp.gnu.org/gnu/make/make-$pkgver.tar.gz
config.sub
"
builddir="$srcdir/make-$pkgver"
build() {
if [ -z "$BOOTSTRAP" ]; then
export CFLAGS="$CFLAGS -flto=auto"
fi
cp "$srcdir"/config.sub "$builddir"/config/
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix="/usr/make$pkgver" \
--disable-nls
make
}
check() {
[ "$CBUILD" != "$CHOST" ] || (ulimit -n 64 && PERL5LIB=. make check)
}
package() {
install -Dm755 make "$pkgdir"/usr/make"$pkgver"/bin/make
ln -sfv make "$pkgdir"/usr/make"$pkgver"/bin/gmake
}
sha512sums="
2d5492ba95cc423d8c6b91dd92776ed57e807def18acb647186e01af28a81e06d37490887f75a99a6aae498c51fe68645dbe9cd145f6c482f1ce2a47385b24e8 make-3.81.tar.gz
0934d0d3d1cdc24719c89968eeb2377a9e7c07a0cf8fc3a1282785483a8812e823d459b3c41475fc7fec0284cb596898a44badf7d25a0de14532225c01602a4d config.sub
"

1907
main/make3.81/config.sub vendored Executable file

File diff suppressed because it is too large Load Diff