mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 22:07:19 +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>
|
# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
|
||||||
pkgname=tartube
|
pkgname=tartube
|
||||||
pkgver=2.5.0
|
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"
|
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"
|
url="https://github.com/axcore/tartube"
|
||||||
# blocked by streamlink
|
arch="noarch !s390x" # freeimage
|
||||||
#arch="noarch !s390x" # freeimage
|
|
||||||
license="LGPL-2.1-or-later"
|
license="LGPL-2.1-or-later"
|
||||||
depends="
|
depends="
|
||||||
aria2
|
aria2
|
||||||
@ -20,34 +19,35 @@ depends="
|
|||||||
py3-playsound
|
py3-playsound
|
||||||
py3-requests
|
py3-requests
|
||||||
python3
|
python3
|
||||||
streamlink
|
|
||||||
xdg-utils
|
xdg-utils
|
||||||
yt-dlp
|
yt-dlp
|
||||||
"
|
"
|
||||||
|
|
||||||
# Enable moviepy and imageio support when possible
|
# Enable moviepy and imageio support when possible
|
||||||
case "$CARCH" in
|
case "$CARCH" in
|
||||||
ppc64le) ;;
|
ppc64le) ;;
|
||||||
*) depends="$depends py3-moviepy py3-imageio" ;;
|
*) depends="$depends py3-moviepy py3-imageio" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
makedepends="py3-setuptools"
|
makedepends="py3-setuptools py3-gpep517"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="$pkgname-$pkgver.tar.gz::https://github.com/axcore/tartube/archive/v$pkgver.tar.gz"
|
source="$pkgname-$pkgver.tar.gz::https://github.com/axcore/tartube/archive/v$pkgver.tar.gz"
|
||||||
|
options="!check" # no tests provided
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
TARTUBE_NO_UPDATES=1 python3 setup.py build
|
export TARTUBE_NO_UPDATES=1
|
||||||
}
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
check() {
|
--output-fd 3 3>&1 >&2
|
||||||
python3 setup.py check
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
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())")"
|
_sitepkgs_dir="$(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")"
|
||||||
mv "$pkgdir/tartube/icons" "$pkgdir$_sitepkgs_dir/tartube/"
|
# mv "$pkgdir/tartube/icons" "$pkgdir$_sitepkgs_dir/tartube/"
|
||||||
rm -rvf "$pkgdir"/tartube
|
# rm -rvf "$pkgdir"/tartube
|
||||||
install -Dm644 pack/tartube.png "$pkgdir"/usr/share/icons/hicolor/48x48/apps/tartube.png
|
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
|
install -Dm644 pack/tartube.desktop "$pkgdir"/usr/share/applications/tartube.desktop
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user