From 605b0591f1dd52e2cb25f33d487ef0455522684b Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 22 Feb 2011 00:36:02 +0100 Subject: [PATCH] new package: add package 'xz' Signed-off-by: Stephan Raue --- packages/toolchain/archivers/xz/build | 37 +++++++++++++++++++++++++++ packages/toolchain/archivers/xz/meta | 36 ++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100755 packages/toolchain/archivers/xz/build create mode 100644 packages/toolchain/archivers/xz/meta diff --git a/packages/toolchain/archivers/xz/build b/packages/toolchain/archivers/xz/build new file mode 100755 index 0000000000..30d816d518 --- /dev/null +++ b/packages/toolchain/archivers/xz/build @@ -0,0 +1,37 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +setup_toolchain host + +cd $PKG_BUILD +./configure --host=$HOST_NAME \ + --build=$HOST_NAME \ + --prefix=$ROOT/$TOOLCHAIN \ + --disable-lzmadec \ + --disable-lzmainfo \ + --disable-lzma-links \ + --disable-scripts \ + --disable-nls +make +make install diff --git a/packages/toolchain/archivers/xz/meta b/packages/toolchain/archivers/xz/meta new file mode 100644 index 0000000000..a9809e904f --- /dev/null +++ b/packages/toolchain/archivers/xz/meta @@ -0,0 +1,36 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="xz" +PKG_VERSION="5.0.1" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://tukaani.org/xz/" +PKG_URL="http://tukaani.org/xz/$PKG_NAME-$PKG_VERSION.tar.bz2" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS="ccache" +PKG_PRIORITY="optional" +PKG_SECTION="toolchain/archivers" +PKG_SHORTDESC="xz: a free general-purpose data compression software with high compression ratio." +PKG_LONGDESC="XZ Utils is free general-purpose data compression software with high compression ratio. XZ Utils were written for POSIX-like systems, but also work on some not-so-POSIX systems. XZ Utils are the successor to LZMA Utils." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no"