Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a836eee8af | ||
|
|
16bf1ae02a |
9
Makefile
9
Makefile
@@ -11,18 +11,19 @@
|
|||||||
DEPENDS = libacl,libattr,glibc
|
DEPENDS = libacl,libattr,glibc
|
||||||
ARCH = x86_64
|
ARCH = x86_64
|
||||||
URL = https://www.gnu.org/software/coreutils/coreutils.html
|
URL = https://www.gnu.org/software/coreutils/coreutils.html
|
||||||
|
REPO = core
|
||||||
BRIEF = Basic file, shell, and text utilities
|
BRIEF = Basic file, shell, and text utilities
|
||||||
DESC = The GNU Core Utilities are the basic file, shell and text \
|
DESC = The GNU Core Utilities are the basic file, shell and text \
|
||||||
manipulation utilities of the GNU operating system.
|
manipulation utilities of the GNU operating system.
|
||||||
SNAPVER = 2
|
SLVER = 4
|
||||||
|
|
||||||
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): $(ARCHIVE)
|
$(SRCDIR): $(ARCHIVE)
|
||||||
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
||||||
@@ -83,7 +84,7 @@ test: $(ROOT)
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -rvf $(ROOT) \
|
@rm -rvf $(ROOT) \
|
||||||
$(SNAPINFO) \
|
$(SLINFO) \
|
||||||
$(MANIFEST) \
|
$(MANIFEST) \
|
||||||
$(FILES) \
|
$(FILES) \
|
||||||
$(SRCDIR)
|
$(SRCDIR)
|
||||||
|
|||||||
Reference in New Issue
Block a user