diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-29 10:05:40 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-29 10:07:43 +0000 |
commit | 81c48f96c7957351226f83f50c9f5a95b638dfb6 (patch) | |
tree | 1274f3edf317708538b790c390305f9798b7f826 /community/py-gst | |
parent | bf18ba9e4b8a4e2ddf00e9153855a79c93dd9bbc (diff) | |
download | aports-81c48f96c7957351226f83f50c9f5a95b638dfb6.tar.bz2 aports-81c48f96c7957351226f83f50c9f5a95b638dfb6.tar.xz |
community/py-gst: rename
Diffstat (limited to 'community/py-gst')
-rw-r--r-- | community/py-gst/APKBUILD | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/community/py-gst/APKBUILD b/community/py-gst/APKBUILD new file mode 100644 index 0000000000..7030252120 --- /dev/null +++ b/community/py-gst/APKBUILD @@ -0,0 +1,68 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=py-gst +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-base" +depends_dev="" +makedepends="gstreamer-dev py-gobject3-dev python2-dev gst-plugins-base-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" |