aports/main/file/APKBUILD

55 lines
1.2 KiB
Text
Raw Normal View History

2016-01-21 09:47:05 +02:00
# Contributor: Valery Kartel <valery.kartel@gmail.com>
2008-11-10 16:06:35 +00:00
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=file
pkgver=5.46
pkgrel=2
2008-11-10 16:06:35 +00:00
pkgdesc="File type identification utility"
url="https://www.darwinsys.com/file/"
arch="all"
license="BSD-2-Clause"
2023-02-22 13:50:52 +00:00
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:
2019-11-15 05:38:36 +01:00
# - CVE-2019-18218
# 5.36-r0:
# - CVE-2019-1543
# - CVE-2019-8904
# - CVE-2019-8905
# - CVE-2019-8906
# - CVE-2019-8907
2010-01-25 17:15:09 +00:00
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--datadir=/usr/share \
--enable-static
2017-08-15 02:20:06 +00:00
make
}
check() {
make check
2010-01-25 17:15:09 +00:00
}
package() {
2017-08-15 02:20:06 +00:00
make DESTDIR="$pkgdir" install
2008-11-10 16:06:35 +00:00
}
2016-01-21 09:47:05 +02:00
libmagic() {
pkgdesc="File type identification library"
2023-07-27 23:48:54 +00:00
amove \
usr/lib/libmagic.so.* \
usr/share/misc/magic.mgc
2016-01-21 09:47:05 +02:00
}
2021-10-20 19:30:56 +02:00
sha512sums="
a6cb7325c49fd4af159b7555bdd38149e48a5097207acbe5e36deb5b7493ad6ea94d703da6e0edece5bb32959581741f4213707e5cb0528cd46d75a97a5242dc file-5.46.tar.gz
bebada4d58c4b937f3c8a55e842402f3af334c2767652c8d1e1b1c2cc73f0b3125bdb4cf97265a4ec1f00d51a13d66b534ce2faa2103e463e6461e55736daf4d file-5.46-pr-579-net147-fix-stack-overrun.patch
2021-10-20 19:30:56 +02:00
"