Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd2c561aa1 |
12
Makefile
12
Makefile
@@ -16,7 +16,7 @@
|
|||||||
# server. This might be one of core, main, dev, or
|
# server. This might be one of core, main, dev, or
|
||||||
# perhaps others.
|
# perhaps others.
|
||||||
# * BRIEF: Short description, should be 50 chars or less
|
# * BRIEF: Short description, should be 50 chars or less
|
||||||
# * SNAPVER: This is the package version. When a package is
|
# * SLVER: This is the package version. When a package is
|
||||||
# changed, but no changes are made to the source code
|
# changed, but no changes are made to the source code
|
||||||
# this value should be increased. This would include
|
# this value should be increased. This would include
|
||||||
# things like usher being modified, changes to default
|
# things like usher being modified, changes to default
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
# * PATCHDIR: This directory should be ./SRC/patches and is
|
# * PATCHDIR: This directory should be ./SRC/patches and is
|
||||||
# required, whether or not patches are used.
|
# required, whether or not patches are used.
|
||||||
# * VERSION: This should be set automatically based on the
|
# * VERSION: This should be set automatically based on the
|
||||||
# version string in the source directory and SNAPVER.
|
# version string in the source directory and SLVER.
|
||||||
# The default command here should work in many cases,
|
# The default command here should work in many cases,
|
||||||
# but certain packages may need to use a different
|
# but certain packages may need to use a different
|
||||||
# method.
|
# method.
|
||||||
@@ -70,15 +70,15 @@ REPO = main
|
|||||||
BRIEF = display dialog boxes from shell scripts
|
BRIEF = display dialog boxes from shell scripts
|
||||||
DESC = Dialog is a program that will let you present a variety of \
|
DESC = Dialog is a program that will let you present a variety of \
|
||||||
questions or display messages using dialog boxes from a shell script
|
questions or display messages using dialog boxes from a shell script
|
||||||
SNAPVER = 0
|
SLVER = 1
|
||||||
|
|
||||||
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
|
||||||
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)/configure: $(ARCHIVE)
|
$(SRCDIR)/configure: $(ARCHIVE)
|
||||||
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
||||||
@@ -130,7 +130,7 @@ test: $(ROOT)
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -rvf $(ROOT) \
|
@rm -rvf $(ROOT) \
|
||||||
$(SNAPINFO) \
|
$(SLINFO) \
|
||||||
$(MANIFEST) \
|
$(MANIFEST) \
|
||||||
$(FILES) \
|
$(FILES) \
|
||||||
$(SRCDIR)
|
$(SRCDIR)
|
||||||
|
|||||||
Reference in New Issue
Block a user