blob: 5fd257accdc072d8b1e8df6aec00a138a421ca68 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Fijxu <fijxu at nadeko dot net>
# Contributor: Telans
_pkgname=tartube
pkgname=tartube-git
pkgver=2.5.0.r1.g43d074b
pkgrel=1
pkgdesc='A GUI front-end for youtube-dl, partly based on youtube-dl-gui and written in Python 3 / Gtk 3 (git version)'
arch=('any')
url='https://github.com/axcore/tartube'
license=('GPL3')
depends=('libibus'
'libgexiv2'
'python-requests'
'python-gobject'
'libblockdev'
'python-playsound'
'python-feedparser')
optdepends=('ffmpeg: Video playback support'
'python-moviepy'
'python-mutagen: To embed thumbnails into the videos, preferred by yt-dlp'
'atomicparsley: To embed thumbnails into the videos')
makedepends=('python-setuptools')
source=("$_pkgname::git+https://github.com/axcore/tartube.git")
sha256sums=('SKIP')
conflicts=('tartube')
pkgver() {
cd "${srcdir}/$_pkgname"
git describe --long --tags | sed "s/^v//;s/\([^-]*-g\)/r\1/;s/-/./g"
}
build() {
cd "$_pkgname"
python setup.py build
}
package() {
cd "$_pkgname"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
_sitepkgs_dir="$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")"
mv "${pkgdir}/tartube/icons" "${pkgdir}${_sitepkgs_dir}/tartube/"
rm -rvf "${pkgdir}/tartube/"
install -d "${pkgdir}/usr/share/applications" \
"${pkgdir}/usr/share/pixmaps"
install -Dm644 pack/tartube.png "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
install -Dm644 pack/tartube.desktop -t "${pkgdir}/usr/share/applications"
}
|