mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/tartube: build with gpep517, rebuild against python 3.12
This commit is contained in:
parent
bb9f6100ff
commit
c1b9c1ec1d
@ -2,11 +2,10 @@
|
||||
# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
|
||||
pkgname=tartube
|
||||
pkgver=2.5.0
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="GUI front-end for youtube-dl, partly based on youtube-dl-gui and written in Python 3 / Gtk 3"
|
||||
url="https://github.com/axcore/tartube"
|
||||
# blocked by streamlink
|
||||
#arch="noarch !s390x" # freeimage
|
||||
arch="noarch !s390x" # freeimage
|
||||
license="LGPL-2.1-or-later"
|
||||
depends="
|
||||
aria2
|
||||
@ -20,34 +19,35 @@ depends="
|
||||
py3-playsound
|
||||
py3-requests
|
||||
python3
|
||||
streamlink
|
||||
xdg-utils
|
||||
yt-dlp
|
||||
"
|
||||
|
||||
# Enable moviepy and imageio support when possible
|
||||
case "$CARCH" in
|
||||
ppc64le) ;;
|
||||
*) depends="$depends py3-moviepy py3-imageio" ;;
|
||||
ppc64le) ;;
|
||||
*) depends="$depends py3-moviepy py3-imageio" ;;
|
||||
esac
|
||||
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/axcore/tartube/archive/v$pkgver.tar.gz"
|
||||
options="!check" # no tests provided
|
||||
|
||||
build() {
|
||||
TARTUBE_NO_UPDATES=1 python3 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
python3 setup.py check
|
||||
export TARTUBE_NO_UPDATES=1
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
|
||||
_sitepkgs_dir="$(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")"
|
||||
mv "$pkgdir/tartube/icons" "$pkgdir$_sitepkgs_dir/tartube/"
|
||||
rm -rvf "$pkgdir"/tartube
|
||||
# mv "$pkgdir/tartube/icons" "$pkgdir$_sitepkgs_dir/tartube/"
|
||||
# rm -rvf "$pkgdir"/tartube
|
||||
install -Dm644 pack/tartube.png "$pkgdir"/usr/share/icons/hicolor/48x48/apps/tartube.png
|
||||
install -Dm644 pack/tartube.desktop "$pkgdir"/usr/share/applications/tartube.desktop
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user