2019-03-09 23:03:00 +01:00
|
|
|
VERSION="5.36"
|
2018-02-09 00:41:59 +01:00
|
|
|
SRCDIR="file-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.gz"
|
|
|
|
URL="ftp://ftp.astron.com/pub/file"
|
2019-03-09 23:03:00 +01:00
|
|
|
SHA256SUM="fb608290c0fd2405a8f63e5717abf6d03e22e183fb21884413d1edd918184379"
|
2019-02-27 14:22:03 +01:00
|
|
|
DEPENDS="zlib-dev crt-dev"
|
|
|
|
SUBPKG="file file-dev"
|
2018-02-09 00:41:59 +01:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|