2012-02-28 11:26:57 +01:00
|
|
|
# Template file for 'chroot-file'
|
|
|
|
pkgname=chroot-file
|
2014-04-05 10:32:49 +02:00
|
|
|
version=5.18
|
|
|
|
revision=1
|
2012-02-28 11:26:57 +01:00
|
|
|
wrksrc="file-${version}"
|
|
|
|
build_style=gnu-configure
|
2014-02-14 11:22:43 +01:00
|
|
|
hostmakedepends="zlib-devel"
|
2012-05-23 18:26:56 +02:00
|
|
|
makedepends="zlib-devel"
|
2012-02-28 11:26:57 +01: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 14:12:56 +01:00
|
|
|
distfiles="ftp://ftp.astron.com/pub/file/file-$version.tar.gz"
|
2014-04-05 10:32:49 +02:00
|
|
|
checksum=6519fb706d583231c2419592ebecdbb21d33c62eaf7a1a0b24ddfcb80c08bf07
|
2012-02-28 11:26:57 +01:00
|
|
|
|
2014-04-05 10:36:39 +02:00
|
|
|
lib32disabled=yes
|
2014-02-14 10:56:55 +01: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.
|
2014-02-14 11:07:22 +01:00
|
|
|
[ ! -d host-build ] && mkdir host-build
|
|
|
|
cd host-build
|
|
|
|
CC= CFLAGS= LDFLAGS= AR= RANLIB= ../configure
|
2014-02-14 10:56:55 +01:00
|
|
|
make ${makejobs}
|
2014-02-14 11:07:22 +01:00
|
|
|
install -m755 src/file ${wrksrc}/host-build/
|
2014-02-14 10:56:55 +01:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
pre_build() {
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2014-02-14 11:22:43 +01:00
|
|
|
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 10:56:55 +01:00
|
|
|
fi
|
2012-02-28 11:26:57 +01:00
|
|
|
}
|
2013-04-12 08:55:23 +02:00
|
|
|
|
2014-02-14 10:56:55 +01:00
|
|
|
post_install() {
|
|
|
|
rm -rf ${DESTDIR}/usr/share/man
|
2013-04-12 08:55:23 +02:00
|
|
|
}
|