From b7f54b5eb50e2be39977b9367ed95735e64dd833 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Tue, 5 Jan 2021 16:34:41 +0100 Subject: [PATCH] git subrepo clone --branch=master https://aur.archlinux.org/python-casttube subrepo: subdir: "python-casttube" merged: "c04a50c" upstream: origin: "https://aur.archlinux.org/python-casttube" branch: "master" commit: "c04a50c" git-subrepo: version: "0.4.3" origin: "???" commit: "???" --- python-casttube/.SRCINFO | 17 +++++++++++++++++ python-casttube/.gitrepo | 12 ++++++++++++ python-casttube/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ python-casttube/license.patch | 12 ++++++++++++ 4 files changed, 73 insertions(+) create mode 100644 python-casttube/.SRCINFO create mode 100644 python-casttube/.gitrepo create mode 100644 python-casttube/PKGBUILD create mode 100644 python-casttube/license.patch diff --git a/python-casttube/.SRCINFO b/python-casttube/.SRCINFO new file mode 100644 index 0000000..8505a06 --- /dev/null +++ b/python-casttube/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = python-casttube + pkgdesc = YouTube chromecast api + pkgver = 0.2.1 + pkgrel = 2 + url = http://github.com/ur1katz/casttube + arch = any + license = MIT + makedepends = python-setuptools + depends = python + depends = python-requests + source = https://github.com/ur1katz/casttube/archive/0.2.1.tar.gz + source = license.patch + sha256sums = 351819818a10a107641675cab71c4154afb490762410b3138c18ef410cbf5c33 + sha256sums = cfd4952db463d970ae6d1121f23f11ccb56322fdc413effbb55a45e8b05c9556 + +pkgname = python-casttube + diff --git a/python-casttube/.gitrepo b/python-casttube/.gitrepo new file mode 100644 index 0000000..7121885 --- /dev/null +++ b/python-casttube/.gitrepo @@ -0,0 +1,12 @@ +; DO NOT EDIT (unless you know what you are doing) +; +; This subdirectory is a git "subrepo", and this file is maintained by the +; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme +; +[subrepo] + remote = https://aur.archlinux.org/python-casttube + branch = master + commit = c04a50ce8997e235540bd048ef7b573ab7c9cedd + parent = cbafd65c02043dbff1f2d73a4caaa1fcd181d740 + method = merge + cmdver = 0.4.3 diff --git a/python-casttube/PKGBUILD b/python-casttube/PKGBUILD new file mode 100644 index 0000000..efa9e2a --- /dev/null +++ b/python-casttube/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Sibren Vasse + +_name=casttube +pkgname="python-$_name" +pkgver=0.2.1 +pkgrel=2 +pkgdesc='YouTube chromecast api' +url='http://github.com/ur1katz/casttube' +depends=('python' 'python-requests') +makedepends=('python-setuptools') +license=('MIT') +arch=('any') +source=("https://github.com/ur1katz/casttube/archive/${pkgver}.tar.gz" +license.patch) +sha256sums=('351819818a10a107641675cab71c4154afb490762410b3138c18ef410cbf5c33' + 'cfd4952db463d970ae6d1121f23f11ccb56322fdc413effbb55a45e8b05c9556') + +prepare() { + cd "${srcdir}/${_name}-${pkgver}" + patch --forward --strip=1 --input="${srcdir}/license.patch" +} + +build() { + cd "${srcdir}/${_name}-${pkgver}" + python setup.py build +} + +package() { + cd "${srcdir}/${_name}-${pkgver}" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + python setup.py install --root="${pkgdir}" --optimize=1 --skip-build +} diff --git a/python-casttube/license.patch b/python-casttube/license.patch new file mode 100644 index 0000000..d32855b --- /dev/null +++ b/python-casttube/license.patch @@ -0,0 +1,12 @@ +diff --git a/setup.py b/setup.py +index feb39f2..14fb206 100644 +--- a/setup.py ++++ b/setup.py +@@ -12,7 +12,6 @@ setup(name='casttube', + author='Uri Katz', + author_email='4urikatz@gmail.com', + license='MIT', +- data_files = [("", ["LICENSE"])], + packages=['casttube'], + zip_safe=False, + keywords = ['youtube', 'chromecast', 'youtube-api'],