summaryrefslogtreecommitdiffstats
path: root/python/gst-python3/gst-python3.SlackBuild
diff options
context:
space:
mode:
author Matteo Bernardini2020-11-07 10:39:25 +0100
committer Matteo Bernardini2020-11-07 10:39:25 +0100
commit69c0dd02dd77d45035c7458bbb3507bfd659bc47 (patch)
tree67e0545ccec095bdced5501bd94b7a7c8c6ac70a /python/gst-python3/gst-python3.SlackBuild
parent47e77153bd7179d5081b4608265a62a12059e36f (diff)
downloadslackbuilds-current-20201107.1.tar.gz
20201107.1 global branch merge.current-20201107.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'python/gst-python3/gst-python3.SlackBuild')
-rw-r--r--python/gst-python3/gst-python3.SlackBuild29
1 files changed, 17 insertions, 12 deletions
diff --git a/python/gst-python3/gst-python3.SlackBuild b/python/gst-python3/gst-python3.SlackBuild
index a9c2d7eb42..08ebb64e98 100644
--- a/python/gst-python3/gst-python3.SlackBuild
+++ b/python/gst-python3/gst-python3.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=gst-python3
SRCNAM=gst-python
-VERSION=${VERSION:-1.6.2}
+VERSION=${VERSION:-1.16.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -71,18 +71,23 @@ 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 {} \;
-CFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --build=$ARCH-slackware-linux \
- PYTHON=/usr/bin/python3
+patch -p1 < $CWD/fix-builds-with-python-3.8.patch
-make
-make install DESTDIR=$PKG
-
-# Remove the .la file to prevent conflicts with the python2 version of gst-python
-rm $PKG/usr/lib${LIBDIRSUFFIX}/gstreamer-1.0/libgstpythonplugin.la
+mkdir build
+cd build
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ meson .. \
+ --buildtype=release \
+ --infodir=/usr/info \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --prefix=/usr \
+ --sysconfdir=/etc
+ ninja
+ DESTDIR=$PKG ninja install
+cd ..
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