[arch-commits] Commit in python-pafy/repos (2 files)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sun Dec 25 16:44:38 UTC 2016


    Date: Sunday, December 25, 2016 @ 16:44:37
  Author: bpiotrowski
Revision: 201947

archrelease: copy trunk to community-staging-any

Added:
  python-pafy/repos/community-staging-any/
  python-pafy/repos/community-staging-any/PKGBUILD
    (from rev 201946, python-pafy/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: python-pafy/repos/community-staging-any/PKGBUILD (from rev 201946, python-pafy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 16:44:37 UTC (rev 201947)
@@ -0,0 +1,34 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+
+pkgbase=python-pafy
+pkgname=(python-pafy python2-pafy)
+pkgver=0.5.2
+pkgrel=2
+
+pkgdesc="Python API for YouTube"
+url="http://np1.github.io/pafy"
+arch=('any')
+license=('GPL3')
+
+makedepends=('python-setuptools' 'python2-setuptools')
+optdepends=('ffmpeg: fix issues with audio file downloads'
+            'youtube-dl: alternative backend')
+
+source=("python-pafy-$pkgver.tar.gz::https://github.com/np1/pafy/archive/v$pkgver.tar.gz")
+
+sha1sums=('2a5e3f14983366bf6f116316e8c71d833a3900f1')
+
+package_python-pafy() {
+	depends=('python')
+
+	cd pafy-$pkgver
+	python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-pafy() {
+	depends=('python2')
+
+	cd pafy-$pkgver
+	python2 setup.py install --root="$pkgdir" --optimize=1
+	rm "$pkgdir"/usr/bin/ytdl
+}



More information about the arch-commits mailing list