summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-03-21 00:39:42 -0400
committerDavid Spencer <idlemoor@slackbuilds.org>2017-03-25 13:28:10 +0000
commit0a046d4d7da7817574e45f015f1a067ff110b0db (patch)
treef1afe690e975f987b12abaa11ff319c411aa84aa /misc
parent5d20fe0862be1d8b82d7dabce51d46531010cf8c (diff)
downloadslackbuilds-0a046d4d7da7817574e45f015f1a067ff110b0db.tar.gz
misc/asr-manpages: Allow VERSION override.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'misc')
-rw-r--r--misc/asr-manpages/asr-manpages.SlackBuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/asr-manpages/asr-manpages.SlackBuild b/misc/asr-manpages/asr-manpages.SlackBuild
index ebc8654baa..6a3daacded 100644
--- a/misc/asr-manpages/asr-manpages.SlackBuild
+++ b/misc/asr-manpages/asr-manpages.SlackBuild
@@ -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 . \