diff --git a/install.sh b/install.sh index bee60ef7..0276778c 100755 --- a/install.sh +++ b/install.sh @@ -22,7 +22,7 @@ PRGNAM=slpkg VERSION=${VERSION:-$(cat slpkg/__metadata__.py | grep "__version_info__ = (" \ - | cut -c25-31 | tr -d [[:space:]] | tr , .)} + | tr -d [[:space:]] | cut -c19-23 | tr , .)} TAG=${TAG:-_dsw} # Installation script. diff --git a/slackbuild/slpkg.SlackBuild b/slackbuild/slpkg.SlackBuild index 8ac315e7..ef91ed5d 100755 --- a/slackbuild/slpkg.SlackBuild +++ b/slackbuild/slpkg.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=slpkg VERSION=${VERSION:-$(cat ../slpkg/__metadata__.py | grep "__version_info__ = (" \ - | cut -c25-31 | tr -d [[:space:]] | tr , .)} + | tr -d [[:space:]] | cut -c19-23 | tr , .)} BUILD=${BUILD:-1} TAG=${TAG:-_dsw}