From 06a3f4b58d5a63b3330396ec55a95b7286c2ce89 Mon Sep 17 00:00:00 2001 From: Jay Larson Date: Sat, 22 Aug 2020 22:34:23 -0500 Subject: [PATCH] Moved to slp format --- Makefile | 15 ++++++++------- Makefile.ncurses-dev | 3 ++- {SNAP => SL}/README | 0 3 files changed, 10 insertions(+), 8 deletions(-) rename {SNAP => SL}/README (100%) diff --git a/Makefile b/Makefile index 3cb8159..854d8e9 100644 --- a/Makefile +++ b/Makefile @@ -9,25 +9,26 @@ # GNU General Public License for more details. export SRCPKG = ncurses -export DEPENDS = glibc +export DEPENDS = dash,glibc export ARCH = x86_64 export URL = https://www.gnu.org/software/ncurses/ +REPO = core BRIEF = Library and tools for terminal handling DESC = The Ncurses (new curses) library is a free software emulation of \ curses in System V Release 4.0, and more. -SNAPVER = 2 +SLVER = 3 ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//') PATCHDIR := $(PWD)/SRC/patches export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \ - sed 's/^-//')-$(SNAPVER) + sed 's/^-//')-$(SLVER) DEV := $(PWD)/ncurses-dev DEVROOT := $(DEV)/ROOT -include /usr/share/snap/Makefile.snaplinux +include /usr/share/sl/Makefile.snaplinux $(SRCDIR)/configure: $(ARCHIVE) @if [ '$(TYPE)' == 'application/x-bzip2' ]; then \ @@ -90,7 +91,7 @@ $(ROOT): $(SRCDIR)/objects/cursesmain.o ln -sfv libncursesw.a $(ROOT)/usr/lib/libcursesw.a && \ ln -sfv libncurses.a $(ROOT)/usr/lib/libcurses.a - @install -v -d $(DEV)/SNAP && \ + @install -v -d $(DEV)/SL && \ install -v -d $(DEVROOT) && \ install -v -d -m 755 $(DEVROOT)/usr/share/doc/ncurses && \ for file in `find $(ROOT)|egrep 'man3\/|pkgconfig\/|\.a$$|\.h$$'`; do \ @@ -100,12 +101,12 @@ $(ROOT): $(SRCDIR)/objects/cursesmain.o done && \ cp -v -R $(SRCDIR)/doc/* $(DEVROOT)/usr/share/doc/ncurses && \ find $(ROOT) -type d -empty -delete && \ - cd $(DEV) && make -f ../Makefile.ncurses-dev && mv *.snap ../ + cd $(DEV) && make -f ../Makefile.ncurses-dev && mv *.slp ../ clean: @rm -rvf $(ROOT) \ $(DEV) \ - $(SNAPINFO) \ + $(SLINFO) \ $(MANIFEST) \ $(FILES) \ $(SRCDIR) diff --git a/Makefile.ncurses-dev b/Makefile.ncurses-dev index 10cfee4..695eac9 100644 --- a/Makefile.ncurses-dev +++ b/Makefile.ncurses-dev @@ -9,7 +9,8 @@ # GNU General Public License for more details. DEPENDS = ncurses +REPO = dev BRIEF = Development files for ncurses DESC = Development files for ncurses -include /usr/share/snap/Makefile.snaplinux +include /usr/share/sl/Makefile.snaplinux diff --git a/SNAP/README b/SL/README similarity index 100% rename from SNAP/README rename to SL/README