Updated with new version scheme

This commit is contained in:
2017-05-22 17:05:18 -05:00
parent 003032dd88
commit 9528344c4f

View File

@@ -13,13 +13,13 @@ ARCH = x86_64
URL = http://www.multiprecision.org/ URL = http://www.multiprecision.org/
DESC = Gnu Mpc is a C library for the arithmetic of complex numbers with \ DESC = Gnu Mpc is a C library for the arithmetic of complex numbers with \
arbitrarily high precision and correct rounding of the result. arbitrarily high precision and correct rounding of the result.
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