smlinux/base/diffutils/diffutils.SMBuild
PktSurf 03da9ec93f Discarded '--disable-nls' and similar build options in several build files to allow building of translation files
Added '--docdir' build option to extra/xarchiver, gtk/libcanberra, net/{tor,x2x} build files
Updated net/cgit tarball checksum
Switched to cmake build system in net/weechat
Discarded 'v' verbosity argument used for extracting net/x2x tarball and its doinst.sh
Fixed hardcoded doc directory name in xorg/jasper
2023-04-01 10:28:44 +05:30

38 lines
848 B
Text
Executable file

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
"