mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
main/file: modernise
This commit is contained in:
parent
c48b3ed292
commit
ead0486e7e
@ -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="
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user