From 8a3b02f7ad7379d2856b02deda0f2e26d8d0690b Mon Sep 17 00:00:00 2001 From: Sibren Vasse Date: Sun, 23 Dec 2018 10:01:03 +0100 Subject: [PATCH 1/5] Initial commit --- .SRCINFO | 17 +++++++++++++++++ LICENSE | 21 +++++++++++++++++++++ PKGBUILD | 26 ++++++++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 .SRCINFO create mode 100644 LICENSE create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 00000000..cc334ffd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = python-casttube + pkgdesc = YouTube chromecast api + pkgver = 0.2.0 + pkgrel = 1 + url = http://github.com/ur1katz/casttube + arch = any + license = MIT + depends = python + depends = python-requests + depends = python-setuptools + source = https://files.pythonhosted.org/packages/source/c/casttube/casttube-0.2.0.tar.gz + source = LICENSE + sha256sums = f25b3c634efe702896233690f7590e8d6311590910f18dbb763b90419d9ef53c + sha256sums = 7178b432584adb0a05ef3b47c2f458a8c4ff378fd364b9e2498971d77c7ffa3e + +pkgname = python-casttube + diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..e05eb86c --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Uri Katz + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000..e72e150f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Sibren Vasse + +_name='casttube' +pkgname="python-$_name" +pkgver='0.2.0' +pkgrel=1 +pkgdesc="YouTube chromecast api" +url="http://github.com/ur1katz/casttube" +depends=('python' 'python-requests' 'python-setuptools') +license=('MIT') +arch=('any') +source=("https://files.pythonhosted.org/packages/source/c/${_name}/${_name}-${pkgver}.tar.gz" + 'LICENSE') +sha256sums=('f25b3c634efe702896233690f7590e8d6311590910f18dbb763b90419d9ef53c' + '7178b432584adb0a05ef3b47c2f458a8c4ff378fd364b9e2498971d77c7ffa3e') + +build() { + cd "${srcdir}/${_name}-${pkgver}" + python setup.py build +} + +package() { + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd "${srcdir}/${_name}-${pkgver}" + python setup.py install --root="${pkgdir}" --optimize=1 --skip-build +} -- 2.51.2 From 96f1103b4bd4fdd73007644e4b8a9b2a9a9bb3bb Mon Sep 17 00:00:00 2001 From: Sibren Vasse Date: Thu, 28 Feb 2019 10:55:01 +0100 Subject: [PATCH 2/5] Use LICENSE from package and use tarball from github --- .SRCINFO | 10 ++++------ LICENSE | 21 --------------------- PKGBUILD | 13 ++++++------- 3 files changed, 10 insertions(+), 34 deletions(-) delete mode 100644 LICENSE diff --git a/.SRCINFO b/.SRCINFO index cc334ffd..cd527d3b 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,17 +1,15 @@ pkgbase = python-casttube pkgdesc = YouTube chromecast api pkgver = 0.2.0 - pkgrel = 1 + pkgrel = 2 url = http://github.com/ur1katz/casttube arch = any license = MIT + makedepends = python-setuptools depends = python depends = python-requests - depends = python-setuptools - source = https://files.pythonhosted.org/packages/source/c/casttube/casttube-0.2.0.tar.gz - source = LICENSE - sha256sums = f25b3c634efe702896233690f7590e8d6311590910f18dbb763b90419d9ef53c - sha256sums = 7178b432584adb0a05ef3b47c2f458a8c4ff378fd364b9e2498971d77c7ffa3e + source = https://github.com/ur1katz/casttube/archive/0.2.0.tar.gz + sha256sums = 5dffe63803914ccd0f311940dc49865c4cd0bd4461f901c27a0ef22b3338cd14 pkgname = python-casttube diff --git a/LICENSE b/LICENSE deleted file mode 100644 index e05eb86c..00000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Uri Katz - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/PKGBUILD b/PKGBUILD index e72e150f..5ea4c4fb 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,16 +3,15 @@ _name='casttube' pkgname="python-$_name" pkgver='0.2.0' -pkgrel=1 +pkgrel=2 pkgdesc="YouTube chromecast api" url="http://github.com/ur1katz/casttube" -depends=('python' 'python-requests' 'python-setuptools') +depends=('python' 'python-requests') +makedepends=('python-setuptools') license=('MIT') arch=('any') -source=("https://files.pythonhosted.org/packages/source/c/${_name}/${_name}-${pkgver}.tar.gz" - 'LICENSE') -sha256sums=('f25b3c634efe702896233690f7590e8d6311590910f18dbb763b90419d9ef53c' - '7178b432584adb0a05ef3b47c2f458a8c4ff378fd364b9e2498971d77c7ffa3e') +source=("https://github.com/ur1katz/casttube/archive/${pkgver}.tar.gz") +sha256sums=('5dffe63803914ccd0f311940dc49865c4cd0bd4461f901c27a0ef22b3338cd14') build() { cd "${srcdir}/${_name}-${pkgver}" @@ -20,7 +19,7 @@ build() { } package() { - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" cd "${srcdir}/${_name}-${pkgver}" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" python setup.py install --root="${pkgdir}" --optimize=1 --skip-build } -- 2.51.2 From e883ad95f22ee072db6ca6454b82df7b4f614b97 Mon Sep 17 00:00:00 2001 From: Sibren Vasse Date: Wed, 8 Apr 2020 15:30:18 +0200 Subject: [PATCH 3/5] 0.2.1 --- .SRCINFO | 8 ++++---- PKGBUILD | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index cd527d3b..06052f5c 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,15 +1,15 @@ pkgbase = python-casttube pkgdesc = YouTube chromecast api - pkgver = 0.2.0 - pkgrel = 2 + pkgver = 0.2.1 + pkgrel = 1 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.0.tar.gz - sha256sums = 5dffe63803914ccd0f311940dc49865c4cd0bd4461f901c27a0ef22b3338cd14 + source = https://github.com/ur1katz/casttube/archive/0.2.1.tar.gz + sha256sums = 351819818a10a107641675cab71c4154afb490762410b3138c18ef410cbf5c33 pkgname = python-casttube diff --git a/PKGBUILD b/PKGBUILD index 5ea4c4fb..34aec10d 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,17 +1,17 @@ # Maintainer: Sibren Vasse -_name='casttube' +_name=casttube pkgname="python-$_name" -pkgver='0.2.0' -pkgrel=2 -pkgdesc="YouTube chromecast api" -url="http://github.com/ur1katz/casttube" +pkgver=0.2.1 +pkgrel=1 +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") -sha256sums=('5dffe63803914ccd0f311940dc49865c4cd0bd4461f901c27a0ef22b3338cd14') +sha256sums=('351819818a10a107641675cab71c4154afb490762410b3138c18ef410cbf5c33') build() { cd "${srcdir}/${_name}-${pkgver}" -- 2.51.2 From c04a50ce8997e235540bd048ef7b573ab7c9cedd Mon Sep 17 00:00:00 2001 From: Sibren Vasse Date: Thu, 28 May 2020 10:34:31 +0200 Subject: [PATCH 4/5] Don't install license file to /usr --- .SRCINFO | 4 +++- PKGBUILD | 13 ++++++++++--- license.patch | 12 ++++++++++++ 3 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 license.patch diff --git a/.SRCINFO b/.SRCINFO index 06052f5c..8505a06a 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = python-casttube pkgdesc = YouTube chromecast api pkgver = 0.2.1 - pkgrel = 1 + pkgrel = 2 url = http://github.com/ur1katz/casttube arch = any license = MIT @@ -9,7 +9,9 @@ pkgbase = python-casttube 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/PKGBUILD b/PKGBUILD index 34aec10d..efa9e2a6 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,15 +3,22 @@ _name=casttube pkgname="python-$_name" pkgver=0.2.1 -pkgrel=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") -sha256sums=('351819818a10a107641675cab71c4154afb490762410b3138c18ef410cbf5c33') +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}" diff --git a/license.patch b/license.patch new file mode 100644 index 00000000..d32855ba --- /dev/null +++ b/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'], -- 2.51.2 From 87eea3cdedf4a89274c880b77eecec6030ed42a3 Mon Sep 17 00:00:00 2001 From: Mark Wagie Date: Wed, 10 Feb 2021 13:26:14 -0700 Subject: [PATCH 5/5] use PyPI source, adjust license installation --- .SRCINFO | 11 ++++------- .gitignore | 7 +++++++ PKGBUILD | 44 ++++++++++++++++++++------------------------ license.patch | 12 ------------ 4 files changed, 31 insertions(+), 43 deletions(-) create mode 100644 .gitignore delete mode 100644 license.patch diff --git a/.SRCINFO b/.SRCINFO index 8505a06a..d594e74a 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,17 +1,14 @@ pkgbase = python-casttube - pkgdesc = YouTube chromecast api + pkgdesc = YouTube Chromecast API pkgver = 0.2.1 - pkgrel = 2 + pkgrel = 3 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 + source = https://pypi.org/packages/source/c/casttube/casttube-0.2.1.tar.gz + sha256sums = 54d2af8c7949aa9c5db87fb11ef0a478a5d3e7ac6d2d2ac8dd1711e3a516fc82 pkgname = python-casttube diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..4dab8d63 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +# Ignore everything +* + +# But not these files... +!.gitignore +!PKGBUILD +!.SRCINFO diff --git a/PKGBUILD b/PKGBUILD index efa9e2a6..7f576307 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,32 +1,28 @@ -# Maintainer: Sibren Vasse - -_name=casttube -pkgname="python-$_name" +# Maintainer: Mark Wagie +# Contributor: Sibren Vasse +pkgname=python-casttube +_name=${pkgname#python-} 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') +pkgrel=3 +pkgdesc="YouTube Chromecast API" 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" -} +url="http://github.com/ur1katz/casttube" +license=('MIT') +depends=('python-requests') +makedepends=('python-setuptools') +source=("https://pypi.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz") +sha256sums=('54d2af8c7949aa9c5db87fb11ef0a478a5d3e7ac6d2d2ac8dd1711e3a516fc82') build() { - cd "${srcdir}/${_name}-${pkgver}" - python setup.py build + cd "$_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 + cd "$_name-$pkgver" + export PYTHONHASHSEED=0 + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + + install -d "$pkgdir/usr/share/licenses/$pkgname" + mv "$pkgdir/usr/LICENSE" "$pkgdir/usr/share/licenses/$pkgname" } diff --git a/license.patch b/license.patch deleted file mode 100644 index d32855ba..00000000 --- a/license.patch +++ /dev/null @@ -1,12 +0,0 @@ -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'], -- 2.51.2