Commit 5945fa12 authored by Carlo Landmeter's avatar Carlo Landmeter

testing/py-gst1: add support for py3

parent 5bb8b3f9
......@@ -7,32 +7,62 @@ pkgdesc="GStreamer Python binding"
url="https://cgit.freedesktop.org/gstreamer/gst-python/"
arch="all"
license="LGPL-2.1"
depends=""
depends_dev="py-gobject3 gst-plugins-base1"
depends="py-gobject3 gst-plugins-base1"
depends_dev=""
makedepends="gstreamer1-dev py-gobject3-dev python2-dev gst-plugins-base1-dev
python3-dev automake autoconf libtool
"
install=""
subpackages=""
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="http://gstreamer.freedesktop.org/src/gst-python/gst-python-$pkgver.tar.xz
"
builddir="$srcdir/gst-python-$pkgver"
build() {
cd "$builddir"
prepare() {
default_prepare
cp -r "$builddir" "$srcdir"/python2
cp -r "$builddir" "$srcdir"/python3
}
build() {
_build python2
_build python3
}
package() {
mkdir -p "$pkgdir"
}
_build() {
local python="$1"
export PYTHON=$python
cd "$srcdir"/$python
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
|| return 1
make || return 1
--localstatedir=/var
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
_py2() {
depends="${depends//py-/py2-}"
_py python2
}
_py3() {
depends="${depends//py-/py3-}"
_py python3
}
_py() {
local python="$1"
pkgdesc="$pkgdesc (for $python)"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$srcdir"/"$python"
make DESTDIR="$subpkgdir" install
}
sha512sums="4ff6244048d24c1b51efd72f7bfb75be401f53c552c0f6282ee7eb80790f46f320c9952bcc4c2be88d56e4564b66993b5e8a67e876ec4eb2445e598c7e2abd95 gst-python-1.8.1.tar.xz"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment