smlinux/base/m4/m4.SMBuild
2022-01-28 23:06:05 +05:30

35 lines
1,015 B
Text
Executable file

APP=m4
VERSION=1.4.18
BUILD=1sml
HOMEPAGE='http://gnu.org/software/m4'
DOWNLOAD='https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.xz'
DESC="implementation of the UNIX macro processor"
REQUIRES="musl"
build() {
mkandenterbuilddir
rm -rf $APP-$VERSION
tar xf $SRCDIR/$APP-$VERSION.tar.?z*
cd $APP-$VERSION
fixbuilddirpermissions
patch -p1 < $SRCDIR/disable-mbrtowc-test.patch
patch -p1 < $SRCDIR/localename-test-fix.patch
./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
"