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 ARCH = x86_64
export URL = http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
REPO = core
BRIEF = Library which enhances the CLI
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.
SNAPVER = 4
SLVER = 5
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)/readline-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 \
@@ -75,7 +76,7 @@ $(ROOT): $(SRCDIR)/shlib/libhistory.so.$(VERSION)
$(ROOT)/usr/lib/libhistory.so && \
rm -v $(ROOT)/usr/share/info/dir
@install -v -d $(DEV)/SNAP && \
@install -v -d $(DEV)/SL && \
install -v -d $(DEVROOT) && \
install -v -d -m 755 $(DEVROOT)/usr/share/doc/readline && \
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} \
$(DEVROOT)/usr/share/doc/readline && \
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:
@rm -rvf $(ROOT) \
$(DEV) \
$(SNAPINFO) \
$(SLINFO) \
$(MANIFEST) \
$(FILES) \
$(SRCDIR)

View File

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