Date: Friday, February 2, 2018 @ 21:27:00
  Author: dvzrv
Revision: 288651

archrelease: copy trunk to community-testing-x86_64

Added:
  python-pyliblo/repos/community-testing-x86_64/PKGBUILD
    (from rev 288650, python-pyliblo/trunk/PKGBUILD)
Deleted:
  python-pyliblo/repos/community-testing-x86_64/PKGBUILD

----------+
 PKGBUILD |   96 +++++++++++++++++++++++++++++++++++++------------------------
 1 file changed, 59 insertions(+), 37 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2018-02-02 21:26:51 UTC (rev 288650)
+++ PKGBUILD    2018-02-02 21:27:00 UTC (rev 288651)
@@ -1,37 +0,0 @@
-# Maintainer: David Runge <d...@sleepmap.de>
-# Contributor: Llewelyn Trahaearn <WoefulDerelict at GMail dot com>
-# Contributor: SpepS <dreamspepser at yahoo dot it>
-
-_name=pyliblo
-pkgname=python-pyliblo
-pkgver=0.10.0
-pkgrel=2
-pkgdesc='Python wrapper for the liblo OSC library'
-arch=('x86_64')
-url="http://das.nasophon.de/pyliblo/";
-license=('LGPL2.1')
-depends=('liblo' 'python')
-makedepends=('cython')
-source=("http://das.nasophon.de/download/${_name}-${pkgver}.tar.gz";)
-sha512sums=('d2a3d47f6c52d310104256d33fbd5d652ae6bc8cde32c2d3b2f3f407b8a4aba99028e57cd466804d266f63468a6c792760f28a43dbabcfa3330e0a852ee4d4e3')
-
-check() {
-  cd "${_name}-${pkgver}"
-  python setup.py test
-}
-
-build() {
-  cd "${_name}-${pkgver}"
-  python setup.py build
-}
-
-package() {
-  cd "${_name}-${pkgver}"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}/"
-  install -t "${pkgdir}/usr/share/doc/${pkgname}/" \
-    -Dm644 {NEWS,README}
-}
-

Copied: python-pyliblo/repos/community-testing-x86_64/PKGBUILD (from rev 
288650, python-pyliblo/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2018-02-02 21:27:00 UTC (rev 288651)
@@ -0,0 +1,59 @@
+# Maintainer: David Runge <d...@sleepmap.de>
+# Contributor: Llewelyn Trahaearn <WoefulDerelict at GMail dot com>
+# Contributor: SpepS <dreamspepser at yahoo dot it>
+
+_name=pyliblo
+pkgbase=python-pyliblo
+pkgname=('python-pyliblo' 'python2-pyliblo')
+pkgver=0.10.0
+pkgrel=3
+pkgdesc='Python wrapper for the liblo OSC library'
+arch=('x86_64')
+url="http://das.nasophon.de/pyliblo/";
+license=('LGPL2.1')
+makedepends=('cython' 'cython2' 'liblo')
+source=("http://das.nasophon.de/download/${_name}-${pkgver}.tar.gz";)
+sha512sums=('d2a3d47f6c52d310104256d33fbd5d652ae6bc8cde32c2d3b2f3f407b8a4aba99028e57cd466804d266f63468a6c792760f28a43dbabcfa3330e0a852ee4d4e3')
+
+
+prepare() {
+  cp -a "${_name}-${pkgver}" "${_name}2-${pkgver}"
+}
+
+build() {
+  cd "${_name}-${pkgver}"
+  python setup.py build
+  cd ../"${_name}2-${pkgver}"
+  python2 setup.py build
+}
+
+check() {
+  cd "${_name}-${pkgver}"
+  python setup.py test
+  cd ../"${_name}2-${pkgver}"
+  python2 setup.py test
+}
+
+package_python-pyliblo() {
+  depends=('liblo' 'python')
+  cd "${_name}-${pkgver}"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}/"
+  install -t "${pkgdir}/usr/share/doc/${pkgname}/" \
+    -Dm644 {NEWS,README}
+}
+
+package_python2-pyliblo() {
+  depends=('liblo' 'python2')
+  cd "${_name}2-${pkgver}"
+  python2 setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}/"
+  mv -v "${pkgdir}/usr/bin/dump_osc" "${pkgdir}/usr/bin/dump_osc2"
+  mv -v "${pkgdir}/usr/bin/send_osc" "${pkgdir}/usr/bin/send_osc2"
+  mv -v "${pkgdir}/usr/share/man/man1/dump_osc.1" 
"${pkgdir}/usr/share/man/man1/dump_osc2.1"
+  mv -v "${pkgdir}/usr/share/man/man1/send_osc.1" 
"${pkgdir}/usr/share/man/man1/send_osc2.1"
+}

Reply via email to