mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-23 21:34:18 +08:00
Add recipe for ncurses
This commit is contained in:
parent
5a746d52f3
commit
f6c4c29a95
21
recipes/ncurses/01-config-sub.patch
Normal file
21
recipes/ncurses/01-config-sub.patch
Normal file
@ -0,0 +1,21 @@
|
||||
diff -ru source/config.sub source-new/config.sub
|
||||
--- source/config.sub 2015-05-02 13:52:04.000000000 +0200
|
||||
+++ source-new/config.sub 2017-08-13 13:12:16.485670615 +0200
|
||||
@@ -2,7 +2,7 @@
|
||||
# Configuration validation subroutine script.
|
||||
# Copyright 1992-2015 Free Software Foundation, Inc.
|
||||
|
||||
-timestamp='2015-03-08'
|
||||
+timestamp='2017-08-13'
|
||||
|
||||
# This file is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
@@ -1371,7 +1371,7 @@
|
||||
# The portable systems comes first.
|
||||
# Each alternative MUST END IN A *, to match a version number.
|
||||
# -sysv* is not here because it comes later, after sysvr4.
|
||||
- -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
|
||||
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* | -redox* \
|
||||
| -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
|
||||
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
|
||||
| -sym* | -kopensolaris* | -plan9* \
|
||||
36
recipes/ncurses/recipe.sh
Normal file
36
recipes/ncurses/recipe.sh
Normal file
@ -0,0 +1,36 @@
|
||||
VERSION=6.0
|
||||
TAR=http://ftp.gnu.org/gnu/ncurses/ncurses-$VERSION.tar.gz
|
||||
|
||||
function recipe_version {
|
||||
echo "$VERSION"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_update {
|
||||
echo "skipping update"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
./configure --host=${HOST} --prefix=""
|
||||
make
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_test {
|
||||
echo "skipping test"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_clean {
|
||||
make clean
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_stage {
|
||||
dest="$(realpath $1)"
|
||||
make DESTDIR="$dest" install
|
||||
rm -rf "$1"/bin
|
||||
rm -rf "$1"/share/{doc,info,man}
|
||||
skip=1
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user