archpkgs/python-casttube/PKGBUILD
Gabriel Ebner b7f54b5eb5 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:   "???"
2021-01-05 16:34:41 +01:00

33 lines
923 B
Bash

# Maintainer: Sibren Vasse <arch@sibrenvasse.nl>
_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
}