From 0a046d4d7da7817574e45f015f1a067ff110b0db Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 21 Mar 2017 00:39:42 -0400 Subject: misc/asr-manpages: Allow VERSION override. Signed-off-by: B. Watson Signed-off-by: David Spencer --- misc/asr-manpages/asr-manpages.SlackBuild | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'misc') 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 . \ -- cgit v1.2.3