Moved to slp format

This commit is contained in:
2020-08-23 20:25:32 -05:00
parent d78bfa4edc
commit 2dd0938685
2 changed files with 13 additions and 15 deletions

View File

@@ -8,25 +8,26 @@
# 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,util-linux
ARCH = x86_64 ARCH = x86_64
URL = http://e2fsprogs.sourceforge.net/ URL = http://e2fsprogs.sourceforge.net/
DESC = provides the filesystem utilities for use with the ext2 filesystem. \ REPO = core
BRIEF = Filesystem utilities for use with ext2/3/4
DESC = Provides the filesystem utilities for use with the ext2 filesystem. \
It also supports the ext3 and ext4 filesystems. It also supports the ext3 and ext4 filesystems.
SNAPVER = sr0 SLVER = 1
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
BUILDDIR := $(PWD)/BUILD 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)
MAKE = make MAKE = make
MAKEINST = make install && make install-libs && make install-doc-libs MAKEINST = make install && make install-libs && make install-doc-libs
SNAPHACKS =
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 \
@@ -62,8 +63,7 @@ $(BUILDDIR)/config.log: $(SRCDIR)/configure
--target=x86_64-snap-linux-gnu --target=x86_64-snap-linux-gnu
$(BUILDDIR)/e2fsck/e2fsck: $(BUILDDIR)/config.log $(BUILDDIR)/e2fsck/e2fsck: $(BUILDDIR)/config.log
@cd $(BUILDDIR); \ @cd $(BUILDDIR) && make
$(MAKE)
$(ROOT): $(BUILDDIR)/e2fsck/e2fsck $(ROOT): $(BUILDDIR)/e2fsck/e2fsck
@if [ -d $(ROOT) ]; then \ @if [ -d $(ROOT) ]; then \
@@ -72,12 +72,10 @@ $(ROOT): $(BUILDDIR)/e2fsck/e2fsck
mkdir -v $(ROOT); \ mkdir -v $(ROOT); \
fi fi
@cd $(BUILDDIR); \ @cd $(BUILDDIR) && \
export DESTDIR=$(ROOT); \ make install DESTDIR=$(ROOT) && \
$(MAKEINST); \ make install-libs DESTDIR=$(ROOT) && \
unset DESTDIR make install-doc-libs DESTDIR=$(ROOT)
@$(SNAPHACKS)
test: $(ROOT) test: $(ROOT)
@cd $(BUILDDIR); \ @cd $(BUILDDIR); \
@@ -85,7 +83,7 @@ test: $(ROOT)
clean: clean:
@rm -rvf $(ROOT) \ @rm -rvf $(ROOT) \
$(SNAPINFO) \ $(SLINFO) \
$(MANIFEST) \ $(MANIFEST) \
$(FILES) \ $(FILES) \
$(SRCDIR) \ $(SRCDIR) \