From c3318bb0dc360c194639c6a4d38a87abd0ecfa31 Mon Sep 17 00:00:00 2001 From: Jay Larson Date: Sun, 9 Aug 2020 19:18:35 -0500 Subject: [PATCH] Moved to new slp package --- Makefile | 27 +++++++++++---------------- {SNAP => SL}/README | 0 2 files changed, 11 insertions(+), 16 deletions(-) rename {SNAP => SL}/README (100%) diff --git a/Makefile b/Makefile index 80660bc..ad2dc62 100644 --- a/Makefile +++ b/Makefile @@ -11,21 +11,20 @@ DEPENDS = ARCH = x86_64 URL = https://www.freedesktop.org/wiki/Software/pkg-config/ +REPO = dev +BRIEF = Return metainformation about installed libraries DESC = pkg-config is a helper tool used when compiling applications and \ libraries -SNAPVER = sr0 +SLVER = 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') SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//') PATCHDIR := $(PWD)/SRC/patches -VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')$(SNAPVER) +export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \ + sed 's/^-//')-$(SLVER) -MAKE = make -MAKEINST = make install -SNAPHACKS = - -include /usr/share/snap/Makefile.snaplinux +include /usr/share/sl/Makefile.snaplinux $(SRCDIR)/configure: $(ARCHIVE) @if [ '$(TYPE)' == 'application/x-bzip2' ]; then \ @@ -43,7 +42,8 @@ $(SRCDIR)/configure: $(ARCHIVE) @touch $(SRCDIR)/configure $(SRCDIR)/config.log: $(SRCDIR)/configure - @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); \ @@ -56,8 +56,7 @@ $(SRCDIR)/config.log: $(SRCDIR)/configure --target=x86_64-snap-linux-gnu $(SRCDIR)/pkg-config: $(SRCDIR)/config.log - @cd $(SRCDIR); \ - $(MAKE) + @cd $(SRCDIR) && make $(ROOT): $(SRCDIR)/pkg-config @if [ -d $(ROOT) ]; then \ @@ -66,10 +65,7 @@ $(ROOT): $(SRCDIR)/pkg-config mkdir -v $(ROOT); \ fi - @cd $(SRCDIR); \ - $(MAKEINST) DESTDIR=$(ROOT) - - @$(SNAPHACKS) + @cd $(SRCDIR) && make install DESTDIR=$(ROOT) test: $(ROOT) @cd $(SRCDIR); \ @@ -77,8 +73,7 @@ test: $(ROOT) clean: @rm -rvf $(ROOT) \ - $(SNAPINFO) \ + $(SLINFO) \ $(MANIFEST) \ $(FILES) \ $(SRCDIR) - diff --git a/SNAP/README b/SL/README similarity index 100% rename from SNAP/README rename to SL/README