aports/main/file/APKBUILD
Moritz Haase bd570c2a8f main/file: Import patch file instead of downloading it from GitHub
As noted by Celeste at [0], it's in general not recommended to use URL-based
patches. Back when the patch was merged, that was deemed OK for 'master' though.
As the download of the patch file is now indeed failing due to a changed
checksum, use the opportunity to import the patch into the repo (as was done on
the stable branches via e89c62d8 for example).

Please note that the checksum has changed because the patch was downloaded with
the '?full_index=1' option.

[0]: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/77814#note_470256
2025-03-19 07:42:07 +00:00

54 lines
1.2 KiB
Text

# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=file
pkgver=5.46
pkgrel=2
pkgdesc="File type identification utility"
url="https://www.darwinsys.com/file/"
arch="all"
license="BSD-2-Clause"
subpackages="libmagic-static $pkgname-dev $pkgname-doc libmagic"
source="https://astron.com/pub/file/file-$pkgver.tar.gz
file-$pkgver-pr-579-net147-fix-stack-overrun.patch
"
# secfixes:
# 5.37-r1:
# - CVE-2019-18218
# 5.36-r0:
# - CVE-2019-1543
# - CVE-2019-8904
# - CVE-2019-8905
# - CVE-2019-8906
# - CVE-2019-8907
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--datadir=/usr/share \
--enable-static
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
}
libmagic() {
pkgdesc="File type identification library"
amove \
usr/lib/libmagic.so.* \
usr/share/misc/magic.mgc
}
sha512sums="
a6cb7325c49fd4af159b7555bdd38149e48a5097207acbe5e36deb5b7493ad6ea94d703da6e0edece5bb32959581741f4213707e5cb0528cd46d75a97a5242dc file-5.46.tar.gz
bebada4d58c4b937f3c8a55e842402f3af334c2767652c8d1e1b1c2cc73f0b3125bdb4cf97265a4ec1f00d51a13d66b534ce2faa2103e463e6461e55736daf4d file-5.46-pr-579-net147-fix-stack-overrun.patch
"