misc/asr-manpages: Allow VERSION override.

Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
B. Watson 2017-03-21 00:39:42 -04:00 committed by David Spencer
parent 5d20fe0862
commit 0a046d4d7d

View file

@ -25,9 +25,9 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=asr-manpages
VERSION=1.3.6
SRC_VERSION=1.3
DEB_VERSION=1.3-6
VERSION=${VERSION:-1.3.6}
SRC_VERSION=$( echo $VERSION | cut -d. -f1,2 )
DEB_VERSION=6
# Hard code the ARCH as this is truly architecture independent
ARCH=noarch
BUILD=${BUILD:-1}
@ -48,7 +48,7 @@ tar xvf $CWD/${PRGNAM}_$SRC_VERSION.orig.tar.gz
cd $PRGNAM-$SRC_VERSION.orig
# Patch the manpages to the latest version.
patch -p1 < $CWD/${PRGNAM}_$DEB_VERSION.diff
patch -p1 < $CWD/${PRGNAM}_$SRC_VERSION-$DEB_VERSION.diff
chown -R root:root .
find -L . \