mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-26 09:58:31 +01:00
update slackbuild scripts
This commit is contained in:
parent
15bd082ea0
commit
5a500c80fc
2 changed files with 15 additions and 4 deletions
10
install.sh
10
install.sh
|
@ -20,9 +20,15 @@
|
|||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
grab_version() {
|
||||
# Grab version from __metadata_.py file
|
||||
cat slpkg/__metadata__.py | grep "__version_info__ = (" \
|
||||
| tr -d [[:space:]] | cut -c19-23 | tr , .
|
||||
}
|
||||
|
||||
PRGNAM=slpkg
|
||||
VERSION=${VERSION:-$(cat slpkg/__metadata__.py | grep "__version_info__ = (" \
|
||||
| tr -d [[:space:]] | cut -c19-23 | tr , .)}
|
||||
VERSION=${VERSION:-$(grab_version)}
|
||||
TAG=${TAG:-_dsw}
|
||||
|
||||
# Installation script.
|
||||
|
|
|
@ -22,9 +22,14 @@
|
|||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
grab_version() {
|
||||
# Grab version from __metadata_.py file
|
||||
cat slpkg/__metadata__.py | grep "__version_info__ = (" \
|
||||
| tr -d [[:space:]] | cut -c19-23 | tr , .
|
||||
}
|
||||
|
||||
PRGNAM=slpkg
|
||||
VERSION=${VERSION:-$(cat ../slpkg/__metadata__.py | grep "__version_info__ = (" \
|
||||
| tr -d [[:space:]] | cut -c19-23 | tr , .)}
|
||||
VERSION=${VERSION:-$(grab_version)}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_dsw}
|
||||
|
||||
|
|
Loading…
Reference in a new issue