]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - ncurses/ncurses.nm
pcengines-firmware: update to 4.9.0.7
[ipfire-3.x.git] / ncurses / ncurses.nm
index 7528b1d42f2793535310007bc6469e99c7f6e54b..4da26b72a1bdb26a757c2ac06cbe683b8329ad87 100644 (file)
@@ -4,10 +4,9 @@
 ###############################################################################
 
 name       = ncurses
-version    = 5.9
-revision   = 20150117
-release    = 10.%{revision}
-thisapp    = %{name}-%{version}-%{revision}
+version    = 6.1
+release    = 1
+thisapp    = %{name}-%{version}
 
 groups     = System/Base
 url        = http://invisible-island.net/ncurses/ncurses.html
@@ -21,8 +20,7 @@ description
        discontinued 4.4 BSD classic curses library.
 end
 
-source_dl  = ftp://invisible-island.net/ncurses/current/
-sources    = %{thisapp}.tgz
+source_dl  = https://github.com/mirror/%{name}/archive/v%{version}.tar.gz#/
 
 build
        requires
@@ -72,6 +70,12 @@ build
 
                mkdir -pv %{BUILDROOT}/etc/terminfo
 
+               mkdir %{BUILDROOT}%{includedir}/ncurses{,w}
+               for l in %{BUILDROOT}%{includedir}/*.h; do
+                       ln -s ../$(basename $l) %{BUILDROOT}%{includedir}/ncurses
+                       ln -s ../$(basename $l) %{BUILDROOT}%{includedir}/ncursesw
+               done
+
                # don't require -ltinfo when linking with --no-add-needed
                for l in %{BUILDROOT}%{libdir}/libncurses{,w}.so; do
                        soname=$(basename $(readlink $l))
@@ -91,6 +95,8 @@ end
 
 packages
        package %{name}
+               groups += Base
+       end
 
        package %{name}-libs
                template LIBS