From ead0486e7ef976c62f2832efb2c145005a760ea2 Mon Sep 17 00:00:00 2001 From: psykose Date: Thu, 27 Jul 2023 23:48:54 +0000 Subject: [PATCH] main/file: modernise --- main/file/APKBUILD | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/main/file/APKBUILD b/main/file/APKBUILD index d7a85486fc4..0ef826292fd 100644 --- a/main/file/APKBUILD +++ b/main/file/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa 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="