diff options
author | B. Watson | 2017-03-21 05:44:28 +0100 |
---|---|---|
committer | David Spencer | 2017-03-25 14:28:11 +0100 |
commit | 744f9e32cca2a3e9e03071084c81833fd267702b (patch) | |
tree | 0098a3076b3f89b0c82b3c7fe4620963cc2c33ba /misc/funny-manpages | |
parent | c1767bfbef4fc6d89dcbe0b79ab757175312125b (diff) | |
download | old.slackbuilds-744f9e32cca2a3e9e03071084c81833fd267702b.tar.gz |
misc/funny-manpages: Allow VERSION override.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'misc/funny-manpages')
-rw-r--r-- | misc/funny-manpages/funny-manpages.SlackBuild | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/funny-manpages/funny-manpages.SlackBuild b/misc/funny-manpages/funny-manpages.SlackBuild index f302b61020..d88a5414a3 100644 --- a/misc/funny-manpages/funny-manpages.SlackBuild +++ b/misc/funny-manpages/funny-manpages.SlackBuild @@ -24,9 +24,9 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=funny-manpages -VERSION=1.3.5 -SRC_VERSION=1.3 -DEB_VERSION=1.3-5 +VERSION=${VERSION:-1.3.5} +SRC_VERSION=$( echo $VERSION | cut -d. -f1,2 ) +DEB_VERSION=5 ARCH=noarch BUILD=${BUILD:-2} @@ -53,7 +53,7 @@ find -L . \ -exec chmod 644 {} \; # Patch the manpages to the latest version. -patch -p1 < $CWD/${PRGNAM}_$DEB_VERSION.diff +patch -p1 < $CWD/${PRGNAM}_$SRC_VERSION-$DEB_VERSION.diff # Create the directories we need mkdir -p $PKG/usr/man/man{1,3,6,7} |