# SliTaz package receipt. PACKAGE="gstreamer-1.0" VERSION="1.18.5" SERIES="1.0" CATEGORY="multimedia" SHORT_DESC="GStreamer Multimedia Framework." MAINTAINER="pankso@slitaz.org" LICENSE="LGPL2" WEB_SITE="https://gstreamer.freedesktop.org/" SOURCE="gstreamer" TARBALL="$SOURCE-$VERSION.tar.xz" WGET_URL="$WEB_SITE/src/gstreamer/$TARBALL" DEPENDS="glib libgio libxml2" BUILD_DEPENDS="glib-dev libgio-dev \ libxml2-dev pkg-config meson" HOST_ARCH="i486 arm" # Handle cross compilation case "$ARCH" in i?86) BUILD_DEPENDS="$BUILD_DEPENDS bison flex python-dev valgrind" ;; esac current_version() { wget -O - https://gstreamer.freedesktop.org/src/${PACKAGE%-1.0}/ 2>/dev/null | \ sed '/tar/!d;s|.*'${PACKAGE%-1.0}'-||;s|.tar.*||' | sed '$!d' } # Rules to configure and make the package. compile_rules() { meson build \ --prefix=/usr \ --libdir=lib \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --sysconfdir=/etc \ --localstatedir=/var \ --buildtype=release \ -Dintrospection=disabled \ -Dpackage-name="GStreamer ($SERIES)" \ -Dpackage-origin="http://www.slitaz.org/" \ -Dcoretracers=disabled && ninja -C build && ninja -C build install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib/gstreamer-$SERIES mkdir -p $fs/usr/libexec/gstreamer-$SERIES mkdir -p $fs/usr/bin mkdir -p $fs/usr/share/locale mv $install/usr/bin/*-$SERIES $fs/usr/bin mv $install/usr/lib/*.so* $fs/usr/lib mv $install/usr/lib/gstreamer-$SERIES/*.so $fs/usr/lib/gstreamer-$SERIES mv $install/usr/libexec/gstreamer-$SERIES/gst-* $fs/usr/libexec/gstreamer-$SERIES for locale in $LOCALES do mv $install/usr/share/locale/$locale $fs/usr/share/locale done }