diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-04 08:23:06 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-09 15:45:42 +0700 |
commit | e78ff7d76f88c227aef265ac29d3354e43c53266 (patch) | |
tree | 34aef5d5232375f3a3f5c4d8bf759619de9d93da /libraries/miniupnpc | |
parent | 5f6b0758efd05b1e08a3fc78c702e1e7a31ad1df (diff) | |
download | slackbuilds-e78ff7d76f88c227aef265ac29d3354e43c53266.tar.gz |
libraries/miniupnnpc: Remove python3 check.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/miniupnpc')
-rw-r--r-- | libraries/miniupnpc/README | 3 | ||||
-rw-r--r-- | libraries/miniupnpc/miniupnpc.SlackBuild | 9 |
2 files changed, 3 insertions, 9 deletions
diff --git a/libraries/miniupnpc/README b/libraries/miniupnpc/README index 4a8edc6181..7d1ff06c3d 100644 --- a/libraries/miniupnpc/README +++ b/libraries/miniupnpc/README @@ -1,6 +1,3 @@ MiniUPnPc, the client library, enabling applications to access the services provided by an UPnP "Internet Gateway Device" present on the network. In UPnP terminology, it is a UPnP Control Point. - -Note: To install python 3 bindings set PYTHON3=yes. - # PYTHON3=yes ./miniupnpc.SlackBuild diff --git a/libraries/miniupnpc/miniupnpc.SlackBuild b/libraries/miniupnpc/miniupnpc.SlackBuild index 4d10ea3b80..962d278351 100644 --- a/libraries/miniupnpc/miniupnpc.SlackBuild +++ b/libraries/miniupnpc/miniupnpc.SlackBuild @@ -109,12 +109,9 @@ cd .. CFLAGS="$SLKCFLAGS" \ python setup.py install --root=$PKG -# For python 3.x support. -if [ "${PYTHON3:-yes}" == "yes" ]; then - CFLAGS="$SLKCFLAGS" \ - python3 setup.py build - python3 setup.py install --root=$PKG -fi +CFLAGS="$SLKCFLAGS" \ +python3 setup.py build +python3 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 |