smlinux/base/gawk/gawk.SMBuild

35 lines
762 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"
build() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
CFLAGS="-static" \
./configure \
--prefix="" \
--libexecdir=/lib \
--disable-nls \
--without-mpfr \
--without-readline
make CFLAGS="-static"
make install DESTDIR=$pkg
cp COPYING $pkgdocs/
mkfinalpkg
}
sha512sums="
0bf7ccefea01f6249e2da3299f0478421113adb6a827272fc08b02f2691754f3a2de28478681fd97944286c2495decc7dedc99bec11bcb7ee12ea17cf246e296 gawk-4.2.1.tar.lz
"