main/file: modernise

This commit is contained in:
psykose 2023-07-27 23:48:54 +00:00
parent c48b3ed292
commit ead0486e7e

View File

@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=file
pkgver=5.45
pkgrel=0
pkgrel=1
pkgdesc="File type identification utility"
url="https://www.darwinsys.com/file/"
arch="all"
@ -22,8 +22,13 @@ builddir="$srcdir/$pkgname-FILE${pkgver/./_}"
# - CVE-2019-8906
# - CVE-2019-8907
prepare() {
default_prepare
autoreconf -fvi
}
build() {
SH_LIBTOOL='/usr/share/build-1/libtool' autoreconf -f -i
./configure \
--build=$CBUILD \
--host=$CHOST \
@ -43,8 +48,10 @@ package() {
libmagic() {
pkgdesc="File type identification library"
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/lib "$pkgdir"/usr/share "$subpkgdir"/usr
amove \
usr/lib/libmagic.so.* \
usr/share/misc/magic.mgc
}
sha512sums="