diff options
author | Christopher Arndt | 2023-10-16 23:57:54 +0200 |
---|---|---|
committer | Christopher Arndt | 2023-10-16 23:57:54 +0200 |
commit | 21d1310cd51d98983c7b3de9445cf55944877dc4 (patch) | |
tree | 30b3ec94bcecd676623781d64a1cf1ab444ca0ca /PKGBUILD | |
parent | 5e1eac0a948fbd17d166c660794a663e1f77a0cc (diff) | |
download | aur-linux-show-player-git.tar.gz |
Fix version extracrtion and dependencies; update python build system
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 74 |
1 files changed, 44 insertions, 30 deletions
@@ -1,46 +1,60 @@ # Maintainer: Christopher Arndt <chris at chrisarndt.de> _pkgname=linux-show-player -pkgname="${_pkgname}-git" -pkgver=0.5.3.r278.39aba467 +pkgname=$_pkgname-git +pkgver=0.6.0.dev0.r641.6fae70f7 pkgrel=1 -pkgdesc="Cue player designed for stage productions (git version)" -url="https://www.linux-show-player.org/" -arch=('any') -license=('GPL3') -depends=('python-pyqt5' 'python-gobject' 'gst-plugins-good' 'python-mido' - 'python-rtmidi' 'python-sortedcontainers' 'qt5-svg') -makedepends=('git' 'python-setuptools') -optdepends=('gst-libav: for larger format support' - 'ola: for Art-Net timecode support' - 'python-protobuf: for Art-Net timecode support' - 'portmidi: for portmidi support' - 'python-jack-client: for JACK output support') +pkgdesc='Cue player designed for stage productions (git version)' +url='https://www.linux-show-player.org/' +arch=(any) +license=(GPL3) +depends=( + gst-plugins-good + python-appdirs + python-falcon + python-gobject + python-humanize + python-mido + python-pyalsa + python-pyliblo + python-pyqt5 + python-requests + python-rtmidi + python-sortedcontainers + qt5-svg +) +makedepends=(git python-build python-installer python-poetry python-wheel) +optdepends=( + 'gst-libav: for larger format support' + 'ola: for Art-Net timecode support' + 'python-protobuf: for Art-Net timecode support' + 'python-jack-client: for JACK output support' +) options=('!emptydirs') -conflicts=("${_pkgname}") -provides=("${_pkgname}") -source=("${_pkgname}::git+https://github.com/FrancescoCeruti/linux-show-player") +conflicts=($_pkgname) +provides=($_pkgname) +source=("$_pkgname::git+https://github.com/FrancescoCeruti/linux-show-player") sha256sums=('SKIP') - pkgver() { - cd "${srcdir}/${_pkgname}" - - ver=$(python -c "exec(open('lisp/__init__.py').read()); print(__version__)") + cd $_pkgname + grep '^__version' lisp/__init__.py > version.py + local ver=$(python -c "exec(open('version.py').read()); print(__version__)") echo $ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD) } build() { - cd "${srcdir}/${_pkgname}" - - python setup.py build + cd $_pkgname + python -m build --wheel --no-isolation } package() { - cd "${srcdir}/${_pkgname}" - - python setup.py install --root="${pkgdir}/" --prefix=/usr --optimize=1 --skip-build - install -Dm644 dist/linuxshowplayer.desktop -t "${pkgdir}/usr/share/applications" - install -Dm644 dist/linuxshowplayer.png -t "${pkgdir}/usr/share/pixmaps" - install -Dm644 dist/linuxshowplayer.xml -t "${pkgdir}/usr/share/mime/packages" + cd $_pkgname + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm644 dist/linuxshowplayer.desktop \ + -t "$pkgdir"/usr/share/applications + install -Dm644 dist/linuxshowplayer.png \ + -t "$pkgdir"/usr/share/pixmaps + install -Dm644 dist/linuxshowplayer.xml \ + -t "$pkgdir"/usr/share/mime/packages } |