2020-03-13 12:01:56 +01:00
|
|
|
VERSION="5.38"
|
2018-02-09 00:41:59 +01:00
|
|
|
SRCDIR="file-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.gz"
|
|
|
|
URL="ftp://ftp.astron.com/pub/file"
|
2020-03-13 12:01:56 +01:00
|
|
|
SHA256SUM="593c2ffc2ab349c5aea0f55fedfe4d681737b6b62376a9b3ad1e77b2cc19fa34"
|
2019-03-30 23:28:30 +01:00
|
|
|
DEPENDS="zlib-dev toolchain"
|
2019-02-27 14:22:03 +01:00
|
|
|
SUBPKG="file file-dev"
|
2018-02-09 00:41:59 +01:00
|
|
|
|
|
|
|
build() {
|
2018-09-02 14:19:23 +02:00
|
|
|
run_configure "$1"
|
2018-02-09 00:41:59 +01:00
|
|
|
make -j $NUMJOBS
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
2019-03-06 10:03:12 +01:00
|
|
|
make DESTDIR="$PKGDEPLOYDIR" install
|
|
|
|
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
|
2018-02-09 00:41:59 +01:00
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
check_update() {
|
|
|
|
curl --silent --list-only "$URL/" | grep -o "file-[0-9.]*tar.gz" | \
|
|
|
|
sed 's/file-//g' | sed 's/.tar.gz//g' | \
|
|
|
|
verson_find_greatest "$VERSION"
|
2019-03-06 10:03:12 +01:00
|
|
|
}
|