void-packages/srcpkgs/chroot-file/template

42 lines
950 B
Plaintext
Raw Normal View History

2012-02-28 10:26:57 +00:00
# Template file for 'chroot-file'
pkgname=chroot-file
2014-02-14 09:56:55 +00:00
version=5.17
2013-09-25 10:14:23 +00:00
revision=1
2012-02-28 10:26:57 +00:00
wrksrc="file-${version}"
build_style=gnu-configure
makedepends="zlib-devel"
2012-02-28 10:26:57 +00:00
short_desc="File type identification utility -- for xbps-src use"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.darwinsys.com/file/"
license="BSD"
2013-02-11 13:12:56 +00:00
distfiles="ftp://ftp.astron.com/pub/file/file-$version.tar.gz"
2014-02-14 09:56:55 +00:00
checksum=3feb97141b387b64da30aee485852925312c0e74219380a5ed451f14a90c83ca
2012-02-28 10:26:57 +00:00
2014-02-14 09:56:55 +00:00
bootstrap=yes
noverifyrdeps=yes
for f in file file-devel libmagic; do
conflicts+="${f}>=0 "
provides+="${f}-${version}_${revision} "
done
pre_configure() {
if [ "$CROSS_BUILD" ]; then
# Build host file first.
CC= CFLAGS= LDFLAGS= AR= RANLIB= ./configure
make ${makejobs}
2014-02-14 10:01:40 +00:00
install -Dm755 src/file ${wrksrc}/hostbin/file
2014-02-14 09:56:55 +00:00
make distclean
fi
}
pre_build() {
if [ "$CROSS_BUILD" ]; then
export PATH=${wrksrc}/hostbin:$PATH
fi
2012-02-28 10:26:57 +00:00
}
2014-02-14 09:56:55 +00:00
post_install() {
rm -rf ${DESTDIR}/usr/share/man
}