summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 45f416d7cddf340d59839d0af58b39a6e39e9bc9 (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
32
33
34
35
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=python-mpris_server
_name=${pkgname#python-}
pkgver=0.9.0
pkgrel=1
epoch=1
pkgdesc="Integrate MPRIS Media Player support into your app"
arch=('any')
url="https://github.com/alexdelorenzo/mpris_server"
license=('AGPL-3.0-or-later')
depends=(
  'python-emoji'
  'python-gobject'
  'python-pydbus'
  'python-strenum'
  'python-unidecode'
)
makedepends=(
  'python-build'
  'python-installer'
  'python-setuptools'
  'python-wheel'
)
source=("$_name-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('d259badafd2b63fa5f22e7993689f55907eb5f4e1394a699109507f77bec330f')

build() {
  cd "$_name-$pkgver"
  python -m build --wheel --no-isolation
}

package() {
  cd "$_name-$pkgver"
  python -m installer --destdir="$pkgdir" dist/*.whl
}