2021-03-06 08:54:31 +00:00
|
|
|
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
|
|
|
|
# Contributor: Sibren Vasse <arch@sibrenvasse.nl>
|
|
|
|
pkgname=python-casttube
|
|
|
|
_name=${pkgname#python-}
|
2021-01-05 15:34:41 +00:00
|
|
|
pkgver=0.2.1
|
2021-03-06 08:54:31 +00:00
|
|
|
pkgrel=3
|
|
|
|
pkgdesc="YouTube Chromecast API"
|
2021-01-05 15:34:41 +00:00
|
|
|
arch=('any')
|
2021-03-06 08:54:31 +00:00
|
|
|
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')
|
2021-01-05 15:34:41 +00:00
|
|
|
|
|
|
|
build() {
|
2021-03-06 08:54:31 +00:00
|
|
|
cd "$_name-$pkgver"
|
|
|
|
python setup.py build
|
2021-01-05 15:34:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2021-03-06 08:54:31 +00:00
|
|
|
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"
|
2021-01-05 15:34:41 +00:00
|
|
|
}
|