Moved to new slp format

This commit is contained in:
2020-08-21 09:39:39 -05:00
parent 05d1c5660e
commit b29f8a0518
2 changed files with 6 additions and 5 deletions

View File

@@ -11,18 +11,19 @@
DEPENDS = glibc,zlib
ARCH = x86_64
URL = http://www.gnu.org/software/binutils/
REPO = core
BRIEF = Binary tools
DESC = The GNU Binutils are a collection of binary tools.
SNAPVER = 4
SLVER = 4
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
BUILDDIR := $(PWD)/BUILD
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 \
@@ -69,7 +70,7 @@ $(ROOT): $(BUILDDIR)/binutils/ar
@cd $(BUILDDIR) && \
make tooldir=/usr install DESTDIR=$(ROOT) && \
rm -v $(ROOT)/usr/share/info/dir
rm -v $(ROOT)/usr/share/info/{dir,standards.info}
test: $(ROOT)
@cd $(BUILDDIR); \
@@ -77,7 +78,7 @@ test: $(ROOT)
clean:
@rm -rvf $(ROOT) \
$(SNAPINFO) \
$(SLINFO) \
$(MANIFEST) \
$(FILES) \
$(SRCDIR) \