smlinux/base/m4/m4.SMBuild

38 lines
1.1 KiB
Text

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=m4
version=1.4.18
build=1sml
homepage="http://gnu.org/software/m4"
download="https://ftp.gnu.org/gnu/m4/m4-$version.tar.xz"
desc="implementation of the UNIX macro processor"
requires="musl"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
applypatch $srcdir/disable-mbrtowc-test.patch
applypatch $srcdir/localename-test-fix.patch
}
build() {
./configure \
--prefix=""
make
make install DESTDIR=$pkg
cp COPYING $pkgdocs/
mkfinalpkg
}
sha512sums="
de0953d0373247b9f7edbe4cb68169f5405eb0eca4f78f54324e489f51eb50871ce9cc10fe91f23322c65929886ffc64b495deaaadc3494a5a677cee0d4b5290 m4-1.4.18.tar.lz
78bf099c96fcec8c9cebd4e34f0d7c942e99da2ec238baa9464f8443580edb0565e9026c433ee54fb564304ec8e7e90766e19474472e57b48e567fd7b356777e disable-mbrtowc-test.patch
fac0cb58e698996284a222c4da340f92689d6db98f1fbab6e61e1c5f2d90122660296f8e5c60c94169413e3e2ee632c6264f12b98e5d3a1e1aae145a2d4aac45 localename-test-fix.patch
"