From 81c48f96c7957351226f83f50c9f5a95b638dfb6 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 29 Jun 2017 10:05:40 +0000 Subject: community/py-gst: rename --- community/py-gst/APKBUILD | 68 ++++++++++++++++++++++++++++++++++++++++++++++ community/py-gst1/APKBUILD | 68 ---------------------------------------------- 2 files changed, 68 insertions(+), 68 deletions(-) create mode 100644 community/py-gst/APKBUILD delete mode 100644 community/py-gst1/APKBUILD (limited to 'community') 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 +# 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" diff --git a/community/py-gst1/APKBUILD b/community/py-gst1/APKBUILD deleted file mode 100644 index 12c2d69262..0000000000 --- a/community/py-gst1/APKBUILD +++ /dev/null @@ -1,68 +0,0 @@ -# Contributor: Carlo Landmeter -# 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" -- cgit v1.2.3