smlinux/base/diffutils/diffutils.SMBuild

39 lines
891 B
Text

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=diffutils
version=3.6
build=2sml
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"
prepbuilddir() {
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
}
build() {
CPPFLAGS="$($srcdir/gnulibfix lib)" \
LDFLAGS="-static" \
./configure \
--prefix=""
make
make install DESTDIR=$pkg
cp COPYING $pkgdocs/
mkfinalpkg
}
sha512sums="
356f3cdbfd575bf7ca692b2ab36aa9f6dde6d52c560823a6f76ef81c147715f7db499eb689f9ee125a50efe62ca61c0e8600714f2022013723cbc9d6cbe78d5b diffutils-3.6.tar.lz
"