smlinux/base/diffutils/diffutils.SMBuild

38 lines
873 B
Text
Executable file

app=diffutils
version=3.6
build=1sml
homepage="https://www.gnu.org/software/diffutils/"
download="https://ftp.gnu.org/gnu/diffutils/diffutils-$version.tar.xz"
desc="Utilities to find and apply differences between files"
requires="musl"
build() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
for i in tests gnulib-tests doc ; do
printf "all:\n\ttrue\n\ninstall:\n\ttrue\n\n" > "$i"/Makefile.in
done
CPPFLAGS="$($srcdir/gnulibfix lib)" \
LDFLAGS="-static" \
./configure \
--prefix="" \
--sysconfdir=/etc \
--disable-nls
make
make install DESTDIR=$pkg
cp COPYING $pkgdocs/
mkfinalpkg
}
sha512sums="
356f3cdbfd575bf7ca692b2ab36aa9f6dde6d52c560823a6f76ef81c147715f7db499eb689f9ee125a50efe62ca61c0e8600714f2022013723cbc9d6cbe78d5b diffutils-3.6.tar.lz
"