From 5caed7f096f6ebe7f513641d8d0fef4d3bbf5dfb Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 5 Mar 2013 13:47:57 +0100 Subject: [PATCH] new package: add package 'newt' Signed-off-by: Stephan Raue --- packages/devel/newt/build | 34 ++++++++++++++++++++++++++++++++++ packages/devel/newt/install | 26 ++++++++++++++++++++++++++ packages/devel/newt/meta | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100755 packages/devel/newt/build create mode 100755 packages/devel/newt/install create mode 100644 packages/devel/newt/meta diff --git a/packages/devel/newt/build b/packages/devel/newt/build new file mode 100755 index 0000000000..3273d7fb02 --- /dev/null +++ b/packages/devel/newt/build @@ -0,0 +1,34 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2013 Dag Wieers (dag@wieers.com) +# +# 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +cd $PKG_BUILD +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --exec-prefix=/usr \ + --sysconfdir=/etc \ + --datadir=/usr/share \ + +make +$MAKEINSTALL diff --git a/packages/devel/newt/install b/packages/devel/newt/install new file mode 100755 index 0000000000..4d035c084b --- /dev/null +++ b/packages/devel/newt/install @@ -0,0 +1,26 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2013 Dag Wieers (dag@wieers.com) +# +# 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +mkdir -p $INSTALL/usr/lib/ + cp -PR $PKG_BUILD/libnewt.so* $INSTALL/usr/lib/ diff --git a/packages/devel/newt/meta b/packages/devel/newt/meta new file mode 100644 index 0000000000..4e54a60551 --- /dev/null +++ b/packages/devel/newt/meta @@ -0,0 +1,36 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2013 Dag Wieers (dag@wieers.com) +# +# 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="newt" +PKG_VERSION="0.52.14" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="LGPL" +PKG_SITE="https://fedorahosted.org/newt/" +PKG_URL="https://fedorahosted.org/releases/n/e/newt/$PKG_NAME-$PKG_VERSION.tar.gz" +PKG_DEPENDS="popt slang" +PKG_BUILD_DEPENDS="toolchain popt slang" +PKG_PRIORITY="optional" +PKG_SECTION="devel" +PKG_SHORTDESC="newt: library for color text mode, widget based user interfaces" +PKG_LONGDESC="Newt is a programming library for color text mode, widget based user interfaces. Newt can be used to add stacked windows, entry widgets, checkboxes, radio buttons, labels, plain text fields, scrollbars, etc., to text mode user interfaces. Newt is based on the S-Lang library." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="yes"