Commit 6f32d8e5 authored by Adam Dobrawy's avatar Adam Dobrawy Committed by Francesco Colista

main/file: upgrade to 5.37

parent 213ada01
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=file
pkgver=5.36
pkgrel=1
pkgver=5.37
pkgrel=0
pkgdesc="File type identification utility"
url="https://www.darwinsys.com/file"
arch="all"
license="BSD-2-Clause"
makedepends="autoconf libtool automake"
subpackages="$pkgname-dev $pkgname-doc libmagic"
source="ftp://ftp.astron.com/pub/file/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
source=$pkgname-$pkgver.tar.gz::https://github.com/file/file/archive/FILE${pkgver/./_}.tar.gz
builddir="$srcdir/$pkgname-FILE${pkgver/./_}"
# secfixes:
# 5.36-r0:
......@@ -20,7 +21,7 @@ builddir="$srcdir/$pkgname-$pkgver"
# - CVE-2019-8907
build() {
cd "$builddir"
SH_LIBTOOL='/usr/share/build-1/libtool' autoreconf -f -i
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -30,12 +31,10 @@ build() {
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......@@ -45,4 +44,4 @@ libmagic() {
mv "$pkgdir"/usr/lib "$pkgdir"/usr/share "$subpkgdir"/usr
}
sha512sums="3ec5e51ffb7a82defa74845a90fbc983f6e169fc116606049bc01ff6e720d340c8abf6eb7a08b9ac1099162a5c02deac3633b07b039d486344c8abd9052ca751 file-5.36.tar.gz"
sha512sums="9b6ae3dd910a03d2161c91ebc75ac91eb7dbd279563462b77daf902d9ae9f0a70de12c37a498b20c6357d6594059d01841bfd104592107b65c08d8343fca19d2 file-5.37.tar.gz"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment