The following changes were made to Makefile:

* Added BRIEF
  * Moved to new version scheme
  * Corrected patch loop
This commit is contained in:
2017-02-21 14:35:49 -06:00
parent 2996b746a2
commit 2a80b17540

View File

@@ -11,15 +11,16 @@
DEPENDS = glibc
ARCH = x86_64
URL = http://www.gnu.org/software/findutils/
BRIEF = Directory searching utilities
DESC = The GNU Find Utilities are the basic directory searching utilities of \
the GNU operating system.
SNAPVER = sr1
SNAPVER = 2
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)
VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')-$(SNAPVER)
include /usr/share/snap/Makefile.snaplinux
@@ -38,9 +39,10 @@ $(SRCDIR)/configure: $(ARCHIVE)
fi
$(SRCDIR)/config.log: $(SRCDIR)/configure
@if [ -f $(PATCHDIR)/*.patch ]; then \
cd $(SRCDIR) && cat $(PATCHDIR)/*.patch|patch --verbose -Np1; \
fi
@cd $(SRCDIR) && \
for patch in `find $(PATCHDIR) -name \*.patch|sort`; do \
patch --verbose -Np1 -i $$patch; \
done
@cd $(SRCDIR); \
./configure \
--prefix=/usr \