Gabriel Ebner
6ac32fe329
subrepo: subdir: "python-casttube" merged: "87eea3c" upstream: origin: "https://aur.archlinux.org/python-casttube" branch: "master" commit: "87eea3c" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
29 lines
815 B
Bash
29 lines
815 B
Bash
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
|
|
# Contributor: Sibren Vasse <arch@sibrenvasse.nl>
|
|
pkgname=python-casttube
|
|
_name=${pkgname#python-}
|
|
pkgver=0.2.1
|
|
pkgrel=3
|
|
pkgdesc="YouTube Chromecast API"
|
|
arch=('any')
|
|
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 "$_name-$pkgver"
|
|
python setup.py build
|
|
}
|
|
|
|
package() {
|
|
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"
|
|
}
|