# HG changeset patch
# User Christophe Lincoln <pankso@slitaz.org>
# Date 1338637904 -7200
# Node ID bd0fe51a27364bcc3b6b85951a6601d9ab4733b5
# Parent  7ae8c5d88295db04ff8bf5b993552762c74c04fb
file: dont include libmagic and port to ARM

diff -r 7ae8c5d88295 -r bd0fe51a2736 file/receipt
--- a/file/receipt	Sat Jun 02 13:45:01 2012 +0200
+++ b/file/receipt	Sat Jun 02 13:51:44 2012 +0200
@@ -5,12 +5,13 @@
 CATEGORY="system-tools"
 SHORT_DESC="Retrieve file type."
 MAINTAINER="erjo@slitaz.org"
-DEPENDS="zlib libmagic"
-BUILD_DEPENDS="zlib-dev"
 TARBALL="$PACKAGE-$VERSION.tar.gz"
 WEB_SITE="http://www.darwinsys.com/file/"
 WGET_URL="ftp://ftp.astron.com/pub/file/$TARBALL"
-CROSS="bug"
+HOST_ARCH="i486 arm"
+
+DEPENDS="zlib libmagic"
+BUILD_DEPENDS="zlib-dev"
 
 # Rules to configure and make the package.
 compile_rules()
@@ -18,17 +19,16 @@
 	cd $src
 	./configure \
 		--datarootdir=/usr/share \
-		--build=$HOST_SYSTEM \
-		--host=$HOST_SYSTEM &&
+		$CONFIGURE_ARGS &&
 	make &&	make install
 }
 
 # Rules to gen a SliTaz package suitable for Tazpkg.
 genpkg_rules()
 {
-	mkdir -p $fs/usr/lib $fs/usr/share
-	
-	cp -a $_pkg/usr/bin $fs/usr
-	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
-	cp -a $_pkg/usr/share/misc $fs/usr/share
+	mkdir -p $fs/usr/share
+	cp -a $install/usr/bin $fs/usr
+	# --> libmagic
+	#cp -a $install/usr/lib/*.so* $fs/usr/lib
+	cp -a $install/usr/share/misc $fs/usr/share
 }
diff -r 7ae8c5d88295 -r bd0fe51a2736 libmagic-dev/receipt
--- a/libmagic-dev/receipt	Sat Jun 02 13:45:01 2012 +0200
+++ b/libmagic-dev/receipt	Sat Jun 02 13:51:44 2012 +0200
@@ -8,12 +8,13 @@
 DEPENDS="libmagic"
 WEB_SITE="http://www.darwinsys.com/file/"
 WANTED="file"
+HOST_ARCH="i486 arm"
 
 # Rules to gen a SliTaz package suitable for Tazpkg.
 genpkg_rules()
 {
 	mkdir -p $fs/usr/lib
-	cp -a $_pkg/usr/lib/*.*a $fs/usr/lib
-	cp -a $_pkg/usr/include $fs/usr/
+	cp -a $install/usr/lib/*.*a $fs/usr/lib
+	cp -a $install/usr/include $fs/usr/
 }
 
diff -r 7ae8c5d88295 -r bd0fe51a2736 libmagic/receipt
--- a/libmagic/receipt	Sat Jun 02 13:45:01 2012 +0200
+++ b/libmagic/receipt	Sat Jun 02 13:51:44 2012 +0200
@@ -5,14 +5,16 @@
 CATEGORY="system-tools"
 SHORT_DESC="Library for File utility"
 MAINTAINER="erjo@slitaz.org"
-DEPENDS="zlib"
 WEB_SITE="http://www.darwinsys.com/file/"
 WANTED="file"
+HOST_ARCH="i486 arm"
+
+DEPENDS="zlib"
 
 # Rules to gen a SliTaz package suitable for Tazpkg.
 genpkg_rules()
 {
 	mkdir -p $fs/usr/lib
-	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
+	cp -a $install/usr/lib/*.so* $fs/usr/lib
 }