smlinux/base/file/file.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

53 lines
1.5 KiB
Text
Executable file

app=file
version=5.39
build=3sml
homepage="https://www.darwinsys.com/file/"
download="http://astron.com/pub/file/file-$version.tar.gz"
desc="Utility to determine file types"
requires="bzip2 zlib"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
applypatch $srcdir/file.etc.file.diff
applypatch $srcdir/file.short.diff
}
build() {
# linking against libseccomp causes weird "Bad system call" issues
CFLAGS+=" --std=c99" \
./configure \
--prefix="" \
--datadir=/etc \
--enable-fsect-man5 \
--disable-libseccomp
# Install the flat files
# We'll regenerate /etc/file/magic.mgc in the doinst.sh
#rm $pkg/etc/file/magic.mgc
mkdir -p $pkg/etc/file/magic
cp -a magic/Magdir/* $pkg/etc/file/magic/
chmod 0644 $pkg/etc/file/magic/*
install -Dm 755 $srcdir/recompile_magic.mgc.sh $pkg/etc/file/recompile_magic.mgc.sh
( cd $pkg/etc ; ln -sf file misc )
make
make install DESTDIR=$pkg
cp COPYING $pkgdocs/
mkfinalpkg
}
sha512sums="
706f52abe8a4140983c03bc9403987153e3996a8bfbfd20d94f82fc7781c710a54e57b8967c8885e0ceec83f86ff0acca14b6d051b854f79df7aaa626d7068b8 file-5.39.tar.lz
3d5549ee9ec1357cd016b120c519c36b3f9fc1cd5f56a34ae5437ff0a9a536a0fa678dd151604e1d0b43c995fe766df5caf950e025c1ca1471f7bcc8715eca73 file.etc.file.diff
66c7ba2a0d963c12df85408cd07d26cc55ba8cefb117ea322091e63af5aabd6df6ca389139a8f8338ea0edd244dbe43e385799381de1b8c0d33137374b3d5734 file.short.diff
"