summaryrefslogtreecommitdiffstats
path: root/source/l/libieee1284/libieee1284.SlackBuild
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2023-03-09 20:28:23 +0000
committer Eric Hameleers <alien@slackware.com>2023-03-09 22:34:46 +0100
commit821601d7cba5012a437b87753ccee562d94540ca (patch)
treea24a2fe4ffd50c76c0359961eadb86e746698d1b /source/l/libieee1284/libieee1284.SlackBuild
parenta24031248459c107553c13f30fd4bd94a44758e1 (diff)
downloadcurrent-821601d7cba5012a437b87753ccee562d94540ca.tar.gz
current-821601d7cba5012a437b87753ccee562d94540ca.tar.xz
Thu Mar 9 20:28:23 UTC 202320230309202823
a/openssl-solibs-3.0.8-x86_64-2.txz: Rebuilt. ap/dc3dd-7.3.0-x86_64-1.txz: Upgraded. ap/mariadb-10.11.2-x86_64-1.txz: Upgraded. d/cmake-3.25.3-x86_64-1.txz: Upgraded. l/imagemagick-7.1.1_1-x86_64-1.txz: Upgraded. l/libieee1284-0.2.11-x86_64-7.txz: Rebuilt. Rebuilt for python3. Thanks to Heinz Wiesinger. l/libplist-2.2.0-x86_64-4.txz: Rebuilt. Rebuilt for python3. Thanks to Heinz Wiesinger. l/pipewire-0.3.67-x86_64-1.txz: Upgraded. n/ModemManager-1.20.6-x86_64-1.txz: Upgraded. n/NetworkManager-1.42.4-x86_64-1.txz: Upgraded. n/openssl-3.0.8-x86_64-2.txz: Rebuilt. Fixed man pages. Thanks to marav. Add example for enabling the legacy algorithms to /etc/ssl/openssl.cnf. Thanks to ctrlaltca. n/openvpn-2.6.1-x86_64-1.txz: Upgraded. x/ibus-libpinyin-1.15.2-x86_64-1.txz: Upgraded. x/mesa-22.3.7-x86_64-1.txz: Upgraded.
Diffstat (limited to '')
-rwxr-xr-xsource/l/libieee1284/libieee1284.SlackBuild16
1 files changed, 14 insertions, 2 deletions
diff --git a/source/l/libieee1284/libieee1284.SlackBuild b/source/l/libieee1284/libieee1284.SlackBuild
index 326b6573e..1827ffda3 100755
--- a/source/l/libieee1284/libieee1284.SlackBuild
+++ b/source/l/libieee1284/libieee1284.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2006, 2007, 2008, 2009, 2010, 2018 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2006, 2007, 2008, 2009, 2010, 2018, 2023 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=libieee1284
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-6}
+BUILD=${BUILD:-7}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -78,8 +78,20 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \+
+# Upstream commits around better python bindings support
+zcat $CWD/libieee1284-fix-warnings.patch.gz | patch -p1 --verbose || exit 1
+zcat $CWD/libieee1284-add-more-python-bindings.patch.gz | patch -p1 --verbose || exit 1
+
+# Arch patch to update python bindings to python3
+zcat $CWD/libieee1284-python3.patch.gz | patch -p1 --verbose || exit 1
+
+sed -i "s|print sys.version\[:3\]|print(sys.version\[:3\])|" ./configure
+sed -i "s|print sys.platform|print(sys.platform)|" ./configure
+sed -i "s|lib/python|lib$LIBDIRSUFFIX/python|" ./configure
+
# Configure:
CFLAGS="$SLKCFLAGS" \
+PYTHON="/usr/bin/python3" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \