# HG changeset patch # User David Demelier # Date 1550918713 -3600 # Node ID 703590d47608c2e2f0c60936f66314d4e32ac6b9 # Parent 79ee082bf62f0980c651ab0d332e3d3104c30d05 lib/ncurses: initial import, closes #1009 diff -r 79ee082bf62f -r 703590d47608 lib/ncurses/ncurses.info --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/ncurses/ncurses.info Sat Feb 23 11:45:13 2019 +0100 @@ -0,0 +1,22 @@ +#!/bin/sh +# +# Copyright (c) 2019 David Demelier +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# + +PKGNAME=ncurses +PKGVERSION=6.1 +PKGREVISION=1 +PKGSUMMARY="curses library" +PKGDOWNLOAD="https://ftp.gnu.org/pub/gnu/$PKGNAME/$PKGNAME-$PKGVERSION.tar.gz" diff -r 79ee082bf62f -r 703590d47608 lib/ncurses/ncurses.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/ncurses/ncurses.sh Sat Feb 23 11:45:13 2019 +0100 @@ -0,0 +1,48 @@ +#!/bin/sh +# +# Copyright (c) 2019 David Demelier +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# + +source ./ncurses.info + +case $(uname -m) in +x86_64) + CFLAGS="-O2 -fPIC" + ;; +*) + CFLAGS="-O2" + ;; +esac + +set -e + +rm -rf $PKGNAME-$PKGVERSION +tar xvaf $PKGNAME-$PKGVERSION.tar.gz +pushd $PKGNAME-$PKGVERSION + +CFLAGS="$CFLAGS" ./configure \ + --prefix=/usr \ + --without-debug \ + --with-shared \ + --enable-widec \ + --enable-pc-files \ + --with-pkg-config-libdir=/usr/lib/pkgconfig \ + --with-cxx-binding \ + --with-cxx-shared +make +make install DESTDIR=$DESTDIR + +popd +rm -rf $PKGNAME-$PKGVERSION