1 Commits

Author SHA1 Message Date
Jay Larson
307207427a Moved to slp format and also added autoreconf to make 2020-08-24 19:55:49 -05:00
2 changed files with 7 additions and 6 deletions

View File

@@ -8,21 +8,22 @@
# 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 = glibc DEPENDS = dash,glibc
ARCH = x86_64 ARCH = x86_64
URL = http://www.gnu.org/software/findutils/ URL = http://www.gnu.org/software/findutils/
REPO = main
BRIEF = Directory searching utilities BRIEF = Directory searching utilities
DESC = The GNU Find Utilities are the basic directory searching utilities of \ DESC = The GNU Find Utilities are the basic directory searching utilities of \
the GNU operating system. the GNU operating system.
SNAPVER = 2 SLVER = 2
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 \
@@ -52,7 +53,7 @@ $(SRCDIR)/config.log: $(SRCDIR)/configure
--target=x86_64-snap-linux-gnu --target=x86_64-snap-linux-gnu
$(SRCDIR)/find/find: $(SRCDIR)/config.log $(SRCDIR)/find/find: $(SRCDIR)/config.log
@cd $(SRCDIR) && make @cd $(SRCDIR) && autoreconf && make
$(ROOT): $(SRCDIR)/find/find $(ROOT): $(SRCDIR)/find/find
@if [ -d $(ROOT) ]; then \ @if [ -d $(ROOT) ]; then \
@@ -70,7 +71,7 @@ test: $(ROOT)
clean: clean:
@rm -rvf $(ROOT) \ @rm -rvf $(ROOT) \
$(SNAPINFO) \ $(SLINFO) \
$(MANIFEST) \ $(MANIFEST) \
$(FILES) \ $(FILES) \
$(SRCDIR) $(SRCDIR)