new package: add package 'file' and 'file-host'

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-08-18 01:16:43 +02:00
parent 42a700b30a
commit 9eb8fa86eb
5 changed files with 71 additions and 0 deletions

17
packages/devel/file-host/build Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
. config/options $1
$SCRIPTS/unpack file
setup_toolchain host
cd $BUILD/file-*
mkdir -p .build-host
cd .build-host
../configure --prefix=$ROOT/$TOOLCHAIN \
--enable-shared \
--disable-static \
make
make install

View File

@ -0,0 +1,12 @@
PKG_NAME="file"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="BSD"
PKG_SITE="http://www.darwinsys.com/file/"
PKG_DEPENDS=""
PKG_BUILD_DEPENDS="toolchain"
PKG_PRIORITY="optional"
PKG_SECTION="devel"
PKG_SHORTDESC="file: File type identification utility"
PKG_LONGDESC="These are the sources to Darwin's file(1) utility and master magic(4) file, now maintained by Christos Zoulas. The file(1) utility is used to determine the types of various files."
PKG_IS_ADDON="no"

16
packages/devel/file/build Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
. config/options $1
cd $PKG_BUILD
mkdir -p .build-target
cd .build-target
../configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-shared \
--disable-static \
make

12
packages/devel/file/install Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
. config/options $1
mkdir -p $INSTALL/usr/bin
cp $PKG_BUILD/.build-target/src/.libs/file $INSTALL/usr/bin
mkdir -p $INSTALL/usr/lib
cp -P $PKG_BUILD/.build-target/src/.libs/libmagic.so* $INSTALL/usr/lib
mkdir -p $INSTALL/usr/share/misc
cp $PKG_BUILD/.build-target/magic/magic.mgc $INSTALL/usr/share/misc

14
packages/devel/file/meta Normal file
View File

@ -0,0 +1,14 @@
PKG_NAME="file"
PKG_VERSION="5.04"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="BSD"
PKG_SITE="http://www.darwinsys.com/file/"
PKG_URL="ftp://ftp.astron.com/pub/file/$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_DEPENDS="zlib"
PKG_BUILD_DEPENDS="toolchain zlib file-host"
PKG_PRIORITY="optional"
PKG_SECTION="devel"
PKG_SHORTDESC="file: File type identification utility"
PKG_LONGDESC="These are the sources to Darwin's file(1) utility and master magic(4) file, now maintained by Christos Zoulas. The file(1) utility is used to determine the types of various files."
PKG_IS_ADDON="no"