blob: a9f3a53066209332986f5fc196fe2a29a0d3304a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: Bazyli Cyran <bazyli@cyran.dev>
pkgname=philipstv-gui
_pypi_pkgname="${pkgname//-/_}"
pkgver=1.2.0
pkgrel=1
pkgdesc='GUI remote for Philips Android-powered TVs.'
url='https://github.com/bcyran/philipstv-gui'
depends=('python' 'philipstv' 'python-ttkbootstrap' 'python-appdirs')
makedepends=('python-build' 'python-installer' 'python-poetry-core' 'python-poetry-dynamic-versioning')
license=('MIT')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${_pypi_pkgname}/${_pypi_pkgname}-${pkgver}.tar.gz" 'philipstv-gui.desktop')
sha256sums=('fb462f220793cb335f7285b40caa5866d145590828fe84e9bd09b8a9547981fb'
'483db659aa68f977f7e0a5ddfb0abe10233779833fb698cb59da94168e707860')
build() {
cd "${_pypi_pkgname}-${pkgver}"
python -m build --wheel --no-isolation --skip-dependency-check
}
package() {
install -Dm644 philipstv-gui.desktop -t "${pkgdir}/usr/share/applications"
cd "${_pypi_pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
ln -s "${site_packages}/${pkgname}-${pkgver}.dist-info/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|