Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6db81d7f10 | ||
|
|
17bef85af7 | ||
|
|
58da0fa51e |
11
Makefile
11
Makefile
@@ -8,22 +8,23 @@
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
DEPENDS = glibc,gmp,mpfr,ncurses,readline
|
||||
DEPENDS = dash,glibc,gmp,mpfr,ncurses,readline
|
||||
ARCH = x86_64
|
||||
URL = https://www.gnu.org/software/gawk/
|
||||
REPO = core
|
||||
BRIEF = GNU awk
|
||||
DESC = The awk utility interprets a special-purpose programming language that \
|
||||
makes it possible to handle simple data-reformatting jobs with just a few \
|
||||
lines of code.
|
||||
SNAPVER = 2
|
||||
SLVER = 5
|
||||
|
||||
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/^-//')-$(SLVER)
|
||||
|
||||
include /usr/share/snap/Makefile.snaplinux
|
||||
include /usr/share/sl/Makefile.snaplinux
|
||||
|
||||
$(SRCDIR)/configure: $(ARCHIVE)
|
||||
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
||||
@@ -71,7 +72,7 @@ test: $(ROOT)
|
||||
|
||||
clean:
|
||||
@rm -rvf $(ROOT) \
|
||||
$(SNAPINFO) \
|
||||
$(SLINFO) \
|
||||
$(MANIFEST) \
|
||||
$(FILES) \
|
||||
$(SRCDIR)
|
||||
|
||||
Reference in New Issue
Block a user