summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Dave Woodfall2021-05-14 22:34:37 +0200
committer Willy Sudiarto Raharjo2021-05-19 13:40:00 +0200
commit92b1a35a1ad9df88691bb5f835eb4870ab7fde8f (patch)
tree9aa2d0594e2b138aa2410351f91fd0ac1799f24c
parentc0d53ab590c3dd11a93ea896b2c4203ed1d24ab0 (diff)
downloadslackbuilds-92b1a35a1ad9df88691bb5f835eb4870ab7fde8f.tar.gz
python/python-gammu: Renamed python2-gammu.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--python/python-gammu/slack-desc19
-rw-r--r--python/python2-gammu/README (renamed from python/python-gammu/README)0
-rw-r--r--python/python2-gammu/python2-gammu.SlackBuild (renamed from python/python-gammu/python-gammu.SlackBuild)11
-rw-r--r--python/python2-gammu/python2-gammu.info (renamed from python/python-gammu/python-gammu.info)2
-rw-r--r--python/python2-gammu/slack-desc19
5 files changed, 26 insertions, 25 deletions
diff --git a/python/python-gammu/slack-desc b/python/python-gammu/slack-desc
deleted file mode 100644
index 7ceb7b0cbf..0000000000
--- a/python/python-gammu/slack-desc
+++ /dev/null
@@ -1,19 +0,0 @@
-# HOW TO EDIT THIS FILE:
-# The "handy ruler" below makes it easier to edit a package description.
-# Line up the first '|' above the ':' following the base package name, and
-# the '|' on the right side marks the last column you can put a character in.
-# You must make exactly 11 lines for the formatting to be correct. It's also
-# customary to leave one space after the ':' except on otherwise blank lines.
-
- |-----handy-ruler------------------------------------------------------|
-python-gammu: python-gammu (Python bindings for gammu)
-python-gammu:
-python-gammu: Python bindings which allow you to use (most) of Gammu's functionality
-python-gammu: from Python language.
-python-gammu:
-python-gammu: Homepage: https://wammu.eu/python-gammu/
-python-gammu:
-python-gammu:
-python-gammu:
-python-gammu:
-python-gammu:
diff --git a/python/python-gammu/README b/python/python2-gammu/README
index 364524f37e..364524f37e 100644
--- a/python/python-gammu/README
+++ b/python/python2-gammu/README
diff --git a/python/python-gammu/python-gammu.SlackBuild b/python/python2-gammu/python2-gammu.SlackBuild
index 1769b64c0f..140db9d26c 100644
--- a/python/python-gammu/python-gammu.SlackBuild
+++ b/python/python2-gammu/python2-gammu.SlackBuild
@@ -22,7 +22,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-PRGNAM=python-gammu
+PRGNAM=python2-gammu
+SRCNAM=python-gammu
VERSION=${VERSION:-2.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -45,9 +46,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2
+cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -55,7 +56,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-python setup.py install --root=$PKG
+python2 setup.py install --root=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
diff --git a/python/python-gammu/python-gammu.info b/python/python2-gammu/python2-gammu.info
index 7eca61f90e..b7c6c6db5f 100644
--- a/python/python-gammu/python-gammu.info
+++ b/python/python2-gammu/python2-gammu.info
@@ -1,4 +1,4 @@
-PRGNAM="python-gammu"
+PRGNAM="python2-gammu"
VERSION="2.7"
HOMEPAGE="https://wammu.eu/python-gammu/"
DOWNLOAD="https://dl.cihar.com/python-gammu/python-gammu-2.7.tar.bz2"
diff --git a/python/python2-gammu/slack-desc b/python/python2-gammu/slack-desc
new file mode 100644
index 0000000000..af76eb1e78
--- /dev/null
+++ b/python/python2-gammu/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+python2-gammu: python2-gammu (Python bindings for gammu)
+python2-gammu:
+python2-gammu: Python bindings which allow you to use (most) of Gammu's functionality
+python2-gammu: from Python language.
+python2-gammu:
+python2-gammu: Homepage: https://wammu.eu/python-gammu/
+python2-gammu:
+python2-gammu:
+python2-gammu:
+python2-gammu:
+python2-gammu: