mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 11:45:36 +02:00
58 lines
1.4 KiB
Text
58 lines
1.4 KiB
Text
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
|
|
maintainer="Krassy Boykinov <kboykinov@teamcentrixx.com>"
|
|
pkgname=py3-gst
|
|
pkgver=1.26.2
|
|
pkgrel=0
|
|
pkgdesc="GStreamer Python3 bindings"
|
|
url="https://gitlab.freedesktop.org/gstreamer/gstreamer"
|
|
arch="all"
|
|
license="LGPL-2.1-or-later"
|
|
depends="py3-gobject3 gst-plugins-base"
|
|
makedepends="
|
|
gst-plugins-bad-dev
|
|
gst-plugins-base-dev
|
|
gst-rtsp-server-dev
|
|
gstreamer-dev
|
|
meson
|
|
py3-gobject3-dev
|
|
python3-dev
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://gstreamer.freedesktop.org/src/gst-python/gst-python-$pkgver.tar.xz
|
|
suffix.patch
|
|
"
|
|
builddir="$srcdir/gst-python-$pkgver"
|
|
options="!check" # need more fixing
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
local pyso="$(readlink /usr/lib/libpython*.*.so)"
|
|
[ -n "$pyso" ]
|
|
msg "libpython: $pyso"
|
|
local suff="${pyso#libpython*.so.}"
|
|
sed -i "s|@SUFF@|$suff|" meson.build
|
|
}
|
|
|
|
build() {
|
|
CFLAGS="$CFLAGS -O2" \
|
|
CXXFLAGS="$CXXFLAGS -O2" \
|
|
abuild-meson \
|
|
-Db_lto=true \
|
|
-Dpython-exe=/usr/bin/python3 \
|
|
. output
|
|
meson compile -C output
|
|
}
|
|
|
|
check() {
|
|
meson test --print-errorlogs -C output
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
}
|
|
|
|
sha512sums="
|
|
0f8b968ba99456bb2acd3c4d629301bba995b614fa13b40754e1a3022fbfaef9d176735ab2c6ca642d65c6fc8657b09469bfd098a3a4b8861cc4ee953c15176a gst-python-1.26.2.tar.xz
|
|
5ec14d7fa8bb39e5a07ca7c34ee9e383ba1677e0f3a8d84987eb8e1d062fd46b3cc4663fa99f2291684a169eda8681ab47b1361cd4f3e8128a5cd5aa4ef0c3ab suffix.patch
|
|
"
|