The following changes were made:

* Added REPO and BRIEF to Makefile
  * Changed to current versioning method
This commit is contained in:
2018-10-08 17:10:00 -05:00
parent a4cdb628f3
commit 0f4d3a50ea

View File

@@ -11,15 +11,17 @@
DEPENDS = glibc DEPENDS = glibc
ARCH = x86_64 ARCH = x86_64
URL = https://savannah.gnu.org/projects/which/ URL = https://savannah.gnu.org/projects/which/
REPO = main
BRIEF = shows the full path of (shell) commands
DESC = GNU which - is a utility that is used to find which executable \ DESC = GNU which - is a utility that is used to find which executable \
(or alias or shell function) is executed when entered on the shell prompt (or alias or shell function) is executed when entered on the shell prompt
SNAPVER = sr1 SNAPVER = 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/^-//')-$(SNAPVER)
include /usr/share/snap/Makefile.snaplinux include /usr/share/snap/Makefile.snaplinux