7 Commits

Author SHA1 Message Date
Jay Larson
8e18e56e08 Moved to slp format 2020-08-23 21:02:30 -05:00
Jay Larson
3b195edd60 The following changes were made:
* Moved temp files back to /var/tmp (/tmp doesn't make sense)
  * Package will now create /var/tmp with the correct perms
2017-04-22 17:43:52 -05:00
Jay Larson
ea28b05873 The following changes were made:
* Added patch to change tmp directory to /tmp
  * Added /tmp directory as part of files.tar.gz
2017-04-22 12:18:44 -05:00
Jay Larson
b39f050299 Changed dependency from libncurses to ncurses 2017-03-30 16:01:54 -05:00
Jay Larson
a8fb6adac5 The following changes were made:
* Corrected dependency ( ncurses -> libncurses )
2017-03-20 11:42:07 -05:00
Jay Larson
047f3ba4e5 Rebuilt after modifying Makefile.snaplinux to fix broken symlinks in manpages 2017-02-22 10:00:10 -06:00
Jay Larson
4c04074e61 Corrected patch loop in Makefile 2017-02-21 14:29:40 -06:00
2 changed files with 10 additions and 10 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 = 2
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 \
@@ -39,7 +40,8 @@ $(SRCDIR)/Makefile: $(ARCHIVE)
@touch $(SRCDIR)/Makefile
$(SRCDIR)/ex: $(SRCDIR)/Makefile
@cd $(SRCDIR) && for patch in `find $(PATCHDIR) -name \*.patch`; do \
@cd $(SRCDIR) && \
for patch in `find $(PATCHDIR) -name \*.patch|sort`; do \
patch --verbose -Np1 -i $$patch; \
done
@cd $(SRCDIR) && make
@@ -51,15 +53,13 @@ $(ROOT): $(SRCDIR)/ex
mkdir -v $(ROOT); \
fi
@cd $(SRCDIR) && make install DESTDIR=$(ROOT)
test: $(ROOT)
@cd $(SRCDIR); \
make test
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \
install -v -d -m 755 $(ROOT)/var && \
install -v -d -m 1777 $(ROOT)/var/tmp
clean:
@rm -rvf $(ROOT) \
$(SNAPINFO) \
$(SLINFO) \
$(MANIFEST) \
$(FILES) \
$(SRCDIR)