chroot-file: update to 5.17.
This commit is contained in:
parent
ddafc76f90
commit
8f4f141a84
1 changed files with 26 additions and 14 deletions
|
@ -1,9 +1,8 @@
|
|||
# Template file for 'chroot-file'
|
||||
pkgname=chroot-file
|
||||
version=5.16
|
||||
version=5.17
|
||||
revision=1
|
||||
wrksrc="file-${version}"
|
||||
bootstrap=yes
|
||||
build_style=gnu-configure
|
||||
makedepends="zlib-devel"
|
||||
short_desc="File type identification utility -- for xbps-src use"
|
||||
|
@ -11,19 +10,32 @@ maintainer="Juan RP <xtraeme@gmail.com>"
|
|||
homepage="http://www.darwinsys.com/file/"
|
||||
license="BSD"
|
||||
distfiles="ftp://ftp.astron.com/pub/file/file-$version.tar.gz"
|
||||
checksum=48bcac7726c37a8a0bc7ffa16b58993575657dd7b382039380fb3b74ab389261
|
||||
checksum=3feb97141b387b64da30aee485852925312c0e74219380a5ed451f14a90c83ca
|
||||
|
||||
post_install() {
|
||||
rm -rf ${DESTDIR}/usr/share/man
|
||||
}
|
||||
|
||||
chroot-file_package() {
|
||||
bootstrap=yes
|
||||
noverifyrdeps=yes
|
||||
|
||||
for f in file file-devel libmagic; do
|
||||
conflicts+="${f}>=0 "
|
||||
provides+="${f}-${version}_${revision} "
|
||||
done
|
||||
pkg_install() {
|
||||
vmove all
|
||||
|
||||
pre_configure() {
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
# Build host file first.
|
||||
CC= CFLAGS= LDFLAGS= AR= RANLIB= ./configure
|
||||
make ${makejobs}
|
||||
install -Dm755 $(find -type f -name file) hostbin/file
|
||||
make distclean
|
||||
fi
|
||||
}
|
||||
|
||||
pre_build() {
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
export PATH=${wrksrc}/hostbin:$PATH
|
||||
fi
|
||||
}
|
||||
|
||||
post_install() {
|
||||
rm -rf ${DESTDIR}/usr/share/man
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue