Moved to new slp package

This commit is contained in:
2020-08-09 19:18:35 -05:00
parent e2414dd6bb
commit c3318bb0dc
2 changed files with 11 additions and 16 deletions

View File

@@ -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)