void-packages/srcpkgs/chroot-file/template

45 lines
1.1 KiB
Text
Raw Normal View History

2012-02-28 10:26:57 +00:00
# Template file for 'chroot-file'
pkgname=chroot-file
2014-06-13 06:37:38 +00:00
version=5.19
2014-04-05 08:32:49 +00:00
revision=1
2012-02-28 10:26:57 +00:00
wrksrc="file-${version}"
build_style=gnu-configure
hostmakedepends="zlib-devel"
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-06-13 06:37:38 +00:00
checksum=9484b3bbda1acc7b13a4f71031a85ce10c77bd0ffec7226741a219ef587e3a7c
2012-02-28 10:26:57 +00:00
2014-04-05 08:36:39 +00:00
lib32disabled=yes
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.
[ ! -d host-build ] && mkdir host-build
cd host-build
CC= CFLAGS= LDFLAGS= AR= RANLIB= ../configure
2014-02-14 09:56:55 +00:00
make ${makejobs}
install -m755 src/file ${wrksrc}/host-build/
2014-02-14 09:56:55 +00:00
fi
}
pre_build() {
if [ "$CROSS_BUILD" ]; then
sed "s,file --version | sed -e s/file-// -e q,${wrksrc}/host-build/file --version | sed -e s/file-// -e s/lt-// -e q,g" -i magic/Makefile
2014-02-14 09:56:55 +00:00
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
}