Moved to new slp format

This commit is contained in:
2020-08-16 17:16:48 -05:00
parent ef2972bf92
commit d15b57f91f
4 changed files with 8 additions and 7 deletions

View File

@@ -8,20 +8,21 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
DEPENDS = DEPENDS = dash,glibc
ARCH = x86_64 ARCH = x86_64
URL = https://sourceforge.net/projects/acpid2/ URL = https://sourceforge.net/projects/acpid2/
REPO = main
BRIEF = Advanced Configuration and Power Interface event daemon BRIEF = Advanced Configuration and Power Interface event daemon
DESC = Advanced Configuration and Power Interface event daemon DESC = Advanced Configuration and Power Interface event daemon
SNAPVER = 2 SLVER = 3
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 \
@@ -63,8 +64,8 @@ $(ROOT): $(SRCDIR)/binfile
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \ @cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \
install -v -d -m 0755 $(ROOT)/etc/init.d && \ install -v -d -m 0755 $(ROOT)/etc/init.d && \
install -v -d -m 0755 $(ROOT)/etc/acpid/events && \ install -v -d -m 0755 $(ROOT)/etc/acpid/events && \
install -v -m 0755 $(SNAPDIR)/acpid.init $(ROOT)/etc/init.d/acpid && \ install -v -m 0755 $(SLDIR)/acpid.init $(ROOT)/etc/init.d/acpid && \
install -v -m 0644 $(SNAPDIR)/powerbutton \ install -v -m 0644 $(SLDIR)/powerbutton \
$(ROOT)/etc/acpid/events/powerbutton $(ROOT)/etc/acpid/events/powerbutton
test: $(ROOT) test: $(ROOT)
@@ -73,7 +74,7 @@ test: $(ROOT)
clean: clean:
@rm -rvf $(ROOT) \ @rm -rvf $(ROOT) \
$(SNAPINFO) \ $(SLINFO) \
$(MANIFEST) \ $(MANIFEST) \
$(FILES) \ $(FILES) \
$(SRCDIR) $(SRCDIR)