diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2016-10-27 00:51:12 +0300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-10-29 06:58:15 +0700 |
commit | 7c74907c8fb0683f3ae58501df4ced3e66b35f51 (patch) | |
tree | b548acf1a5d46e0272e26e17255aa0cd81216b7b | |
parent | 136cff81a0e16a12de144ba881802925ddde87e7 (diff) | |
download | slackbuilds-7c74907c8fb0683f3ae58501df4ced3e66b35f51.tar.gz |
system/slpkg: Updated for version 3.2.2.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
-rw-r--r-- | system/slpkg/README | 16 | ||||
-rw-r--r-- | system/slpkg/slpkg.SlackBuild | 13 | ||||
-rw-r--r-- | system/slpkg/slpkg.info | 6 |
3 files changed, 25 insertions, 10 deletions
diff --git a/system/slpkg/README b/system/slpkg/README index 0470599453..9af2fcae89 100644 --- a/system/slpkg/README +++ b/system/slpkg/README @@ -5,8 +5,14 @@ to install packages. Slpkg makes it easier to maintain groups of machines without having to manually update. Optional dependencies: - python2-pythondialog (for dialog box interface) - pygraphviz (for drawing dependencies diagram) - graph-easy (for drawing ascii dependencies diagram) - aria2 (alternative downloader) - httpie (alternative downloader) + - python2-pythondialog (for dialog box interface) + - pygraphviz (for drawing dependencies diagram) + - graph-easy (for drawing ascii dependencies diagram) + - aria2 (alternative downloader) + - httpie (alternative downloader) + + +NOTE: If you want to build slpkg for use with Python 3.x (needs the +optional dependency python3) pass the script PYTHON3=yes, like: + +PYTHON3=yes ./slpkg.SlackBuild diff --git a/system/slpkg/slpkg.SlackBuild b/system/slpkg/slpkg.SlackBuild index 735e682df2..e31207da55 100644 --- a/system/slpkg/slpkg.SlackBuild +++ b/system/slpkg/slpkg.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=slpkg -VERSION=${VERSION:-3.2.0} +VERSION=${VERSION:-3.2.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -56,6 +56,9 @@ fi set -e +PYTHON=python +[ "${PYTHON3:-no}" = "yes" ] && PYTHON=python3 + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP @@ -72,7 +75,13 @@ find -L . \ # avoid install configuration files and man page over setup.py sed -i 's/if "install"/if ""/' setup.py -python setup.py install --root=$PKG +# Python 3 support +if [ "$PYTHON3" = "yes" ]; then + sh convert-py3k + cd py3k/$PRGNAM +fi + +$PYTHON setup.py install --root=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/system/slpkg/slpkg.info b/system/slpkg/slpkg.info index 2a899b9f63..7af459571e 100644 --- a/system/slpkg/slpkg.info +++ b/system/slpkg/slpkg.info @@ -1,8 +1,8 @@ PRGNAM="slpkg" -VERSION="3.2.0" +VERSION="3.2.2" HOMEPAGE="https://github.com/dslackw/slpkg" -DOWNLOAD="https://github.com/dslackw/slpkg/archive/v3.2.0.tar.gz" -MD5SUM="1a006b491e0d3cb5613f37bdf1847c6c" +DOWNLOAD="https://github.com/dslackw/slpkg/archive/v3.2.2.tar.gz" +MD5SUM="137a121ff3dc9f37abd3af6e2a6ae6c4" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |