mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
new package: add package 'file' and 'file-host'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
42a700b30a
commit
9eb8fa86eb
17
packages/devel/file-host/build
Executable file
17
packages/devel/file-host/build
Executable 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
|
12
packages/devel/file-host/meta
Normal file
12
packages/devel/file-host/meta
Normal 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
16
packages/devel/file/build
Executable 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
12
packages/devel/file/install
Executable 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
14
packages/devel/file/meta
Normal 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"
|
Loading…
x
Reference in New Issue
Block a user