diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2017-04-12 15:49:10 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2017-04-12 16:00:26 +0200 |
commit | 818bb415deb187a1ac9bbe2d117341c4b5c15628 (patch) | |
tree | df77365ea081de42f6566668787ca6b15e1e0d82 /community/py-gst1 | |
parent | 8e099ee055c6978b628c59e121513516ddf9521c (diff) | |
download | aports-818bb415deb187a1ac9bbe2d117341c4b5c15628.tar.bz2 aports-818bb415deb187a1ac9bbe2d117341c4b5c15628.tar.xz |
community/py-gst1: upgrade to 1.10.4 and moved to community
Diffstat (limited to 'community/py-gst1')
-rw-r--r-- | community/py-gst1/APKBUILD | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/community/py-gst1/APKBUILD b/community/py-gst1/APKBUILD new file mode 100644 index 0000000000..12c2d69262 --- /dev/null +++ b/community/py-gst1/APKBUILD @@ -0,0 +1,68 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=py-gst1 +pkgver=1.10.4 +pkgrel=0 +pkgdesc="GStreamer Python binding" +url="https://cgit.freedesktop.org/gstreamer/gst-python/" +arch="all" +license="LGPL-2.1" +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="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" + +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 + make +} + +_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="e8b9590b3e45a4c9d2922673b3a57bd717c6ce1b9f290909ec215b24097f0521a32773d746b33a8ba82aad357063ef6692cf470b2917f48c9772522def4f7617 gst-python-1.10.4.tar.xz" |