Moved to slp format

This commit is contained in:
2020-08-23 21:02:30 -05:00
parent 3b195edd60
commit 8e18e56e08
2 changed files with 5 additions and 4 deletions

View File

@@ -11,17 +11,18 @@
DEPENDS = glibc,ncurses
ARCH = x86_64
URL = http://ex-vi.sourceforge.net/
REPO = main
BRIEF = Text editor
DESC = The vi editor is one of the most common text editors on Unix.
SNAPVER = 8
SLVER = 9
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
VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')-$(SNAPVER)
VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')-$(SLVER)
include /usr/share/snap/Makefile.snaplinux
include /usr/share/sl/Makefile.snaplinux
$(SRCDIR)/Makefile: $(ARCHIVE)
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
@@ -58,7 +59,7 @@ $(ROOT): $(SRCDIR)/ex
clean:
@rm -rvf $(ROOT) \
$(SNAPINFO) \
$(SLINFO) \
$(MANIFEST) \
$(FILES) \
$(SRCDIR)