Moved to slp format

This commit is contained in:
2020-08-21 14:02:52 -05:00
parent 213fd79a37
commit 26ff0b7e79
3 changed files with 9 additions and 7 deletions

View File

@@ -12,22 +12,23 @@ export SRCPKG = readline
export DEPENDS = glibc,ncurses export DEPENDS = glibc,ncurses
export ARCH = x86_64 export ARCH = x86_64
export URL = http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html export URL = http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
REPO = core
BRIEF = Library which enhances the CLI BRIEF = Library which enhances the CLI
DESC = The GNU Readline library provides a set of functions for use by \ DESC = The GNU Readline library provides a set of functions for use by \
applications that allow users to edit command lines as they are typed in. applications that allow users to edit command lines as they are typed in.
SNAPVER = 4 SLVER = 5
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//') SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
PATCHDIR := $(PWD)/SRC/patches PATCHDIR := $(PWD)/SRC/patches
export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \ export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \
sed 's/^-//')-$(SNAPVER) sed 's/^-//')-$(SLVER)
DEV := $(PWD)/readline-dev DEV := $(PWD)/readline-dev
DEVROOT := $(DEV)/ROOT DEVROOT := $(DEV)/ROOT
include /usr/share/snap/Makefile.snaplinux include /usr/share/sl/Makefile.snaplinux
$(SRCDIR)/configure: $(ARCHIVE) $(SRCDIR)/configure: $(ARCHIVE)
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \ @if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
@@ -75,7 +76,7 @@ $(ROOT): $(SRCDIR)/shlib/libhistory.so.$(VERSION)
$(ROOT)/usr/lib/libhistory.so && \ $(ROOT)/usr/lib/libhistory.so && \
rm -v $(ROOT)/usr/share/info/dir rm -v $(ROOT)/usr/share/info/dir
@install -v -d $(DEV)/SNAP && \ @install -v -d $(DEV)/SL && \
install -v -d $(DEVROOT) && \ install -v -d $(DEVROOT) && \
install -v -d -m 755 $(DEVROOT)/usr/share/doc/readline && \ install -v -d -m 755 $(DEVROOT)/usr/share/doc/readline && \
for file in `find $(ROOT)|egrep 'man3\/|\.a$$|\.c$$|\.h$$'`; do \ for file in `find $(ROOT)|egrep 'man3\/|\.a$$|\.c$$|\.h$$'`; do \
@@ -86,12 +87,12 @@ $(ROOT): $(SRCDIR)/shlib/libhistory.so.$(VERSION)
install -v -m 644 $(SRCDIR)/doc/*.{ps,pdf,html,dvi} \ install -v -m 644 $(SRCDIR)/doc/*.{ps,pdf,html,dvi} \
$(DEVROOT)/usr/share/doc/readline && \ $(DEVROOT)/usr/share/doc/readline && \
find $(ROOT) -type d -empty -delete && \ find $(ROOT) -type d -empty -delete && \
cd $(DEV) && make -f ../Makefile.readline-dev && mv *.snap ../ cd $(DEV) && make -f ../Makefile.readline-dev && mv *.slp ../
clean: clean:
@rm -rvf $(ROOT) \ @rm -rvf $(ROOT) \
$(DEV) \ $(DEV) \
$(SNAPINFO) \ $(SLINFO) \
$(MANIFEST) \ $(MANIFEST) \
$(FILES) \ $(FILES) \
$(SRCDIR) $(SRCDIR)

View File

@@ -9,7 +9,8 @@
# GNU General Public License for more details. # GNU General Public License for more details.
DEPENDS = readline DEPENDS = readline
REPO = dev
BRIEF = Development files for readline BRIEF = Development files for readline
DESC = Development files for readline DESC = Development files for readline
include /usr/share/snap/Makefile.snaplinux include /usr/share/sl/Makefile.snaplinux