smlinux/base/gawk/gawk.SMBuild
PktSurf b702d78311 Fixed identation in subshell in build files of following packages:
base/{busybox,enchant,fftw,kmod,llvm,musl}
Replaced CFLAGS and related CFLAGS with += operator for cleanliness
Fixed mkdir commands in:
base/{exiv2,fmt,glib,json-glib}
Fixed file/recompile_magic.mgc.sh script by discarding /usr in base/file build file
Tuned build options in base/flac
Discarded unnecessary CPPFLAGS and printf command in base/flex
Replaced CFLAGS with LDFLAGS in base/gawk
Discarded /usr/bin/update-mime-database with own /etc/rc.d.rc.gtk liner in base/glib's doinst.sh file
Discarded CXXFLAGS liner in base/glib
Discarded mkdir liner in base/initfs
Cause base/llvm build file to properly cd into the smbuild directory smoothly when attempting a rebuild in future
Discarded unnecessary CFLAGS options in base/mksh
Upgraded base/zstd to 1.5.2, rewrote its build options to use cmake build system
2023-03-14 22:36:37 +05:30

38 lines
790 B
Text
Executable file

app=gawk
version=4.2.1
build=1sml
homepage="https://www.gnu.org/software/gawk/"
download="https://ftp.gnu.org/gnu/gawk/gawk-$version.tar.xz"
desc="POSIX-compliant pattern scanning and processing language"
requires="musl"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
}
build() {
#CFLAGS+=" -static" \
LDFLAGS="-static" \
./configure \
--prefix="" \
--libexecdir=/lib \
--disable-nls \
--without-mpfr \
--without-readline
make
make install DESTDIR=$pkg
cp COPYING $pkgdocs/
mkfinalpkg
}
sha512sums="
0bf7ccefea01f6249e2da3299f0478421113adb6a827272fc08b02f2691754f3a2de28478681fd97944286c2495decc7dedc99bec11bcb7ee12ea17cf246e296 gawk-4.2.1.tar.lz
"