1 Commits

Author SHA1 Message Date
Jay Larson
fe801fb5af Moved to new slp format 2020-08-16 17:08:12 -05:00
2 changed files with 4 additions and 4 deletions

View File

@@ -16,15 +16,15 @@ BRIEF = Shows battery status and other ACPI information
DESC = Attempts to replicate the functionality of the \'old\' apm command \
on ACPI systems, including battery and thermal information. Does not \
support ACPI suspending, only displays information about ACPI devices.
SNAPVER = 0
SLVER = 2
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)/configure: $(ARCHIVE)
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
@@ -71,7 +71,7 @@ test: $(ROOT)
clean:
@rm -rvf $(ROOT) \
$(SNAPINFO) \
$(SLINFO) \
$(MANIFEST) \
$(FILES) \
$(SRCDIR)