# Description: File type identification utility # URL: https://www.darwinsys.com/file/ # Maintainer: protonesso, nagakamira at gmail dot com # Depends on: libz xz bzip2 # Section: base name=file version=5.40 release=2 source=("https://astron.com/pub/file/$name-$version.tar.gz") build() { if [ "$USEBOOTSTRAP" = "yes" ]; then cd "$SRC" cp -a $name-$version file-bootstrap ( unset CC CXX AR AS RANLIB LD STRIP CPPFLAGS CFLAGS CXXFLAGS LDFLAGS cd file-bootstrap CC="$HOSTCC" \ CXX="$HOSTCXX" \ CFLAGS="$HOSTCFLAGS" \ CXXFLAGS="$HOSTCXXFLAGS" \ LDFLAGS="$HOSTLDFLAGS" \ ./configure \ --prefix="$SRC"/file \ --disable-libseccomp $ORIGMAKE $ORIGMAKE install ) export PATH="$SRC/file/bin:$PATH" fi cd "$SRC"/$name-$version ./configure $BUILDFLAGS \ --prefix=/usr \ --datadir=/usr/share/file \ --enable-fsect-man5 \ --disable-libseccomp sed -i 's/ -shared / -Wl,--as-needed\0/g' libtool make make DESTDIR="$PKG" install }