diff options
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 89 | ||||
-rwxr-xr-x | youtube-dl-gui | 5 | ||||
-rw-r--r-- | youtube-dl-gui.desktop | 2 |
4 files changed, 95 insertions, 20 deletions
@@ -1,20 +1,23 @@ pkgbase = youtube-dl-gui-git pkgdesc = Cross platform front-end GUI of the popular youtube-dl written in wxPython - pkgver = 0.4.r81.gc5c18e5 - pkgrel = 2 - url = https://github.com/MrS0m30n3/youtube-dl-gui + pkgver = 1.7.0.r12.g8dbf054 + pkgrel = 1 + url = https://github.com/oleksis/youtube-dl-gui arch = any license = custom:UNLICENSE makedepends = git - depends = python2-twodict-git - depends = python2-wxpython3 + makedepends = python-polib + makedepends = python-setuptools + depends = python-pypubsub + depends = python-wxpython + depends = xdg-utils optdepends = ffmpeg: convert video files to audio-only files - optdepends = youtube-dl: alternative to the youtube-dl program downloaded by youtube-dl-gui + optdepends = youtube-dl: alternative to the program downloaded by youtube-dl-gui provides = youtube-dl-gui conflicts = youtube-dl-gui - source = youtube-dl-gui-git::git+https://github.com/MrS0m30n3/youtube-dl-gui.git + source = youtube-dl-gui-git::git+https://github.com/oleksis/youtube-dl-gui.git source = youtube-dl-gui.desktop sha256sums = SKIP - sha256sums = 1f687872e8105394e8b41ab99f3923e87b1cb6c041602147d7847bc4b8f26e8d + sha256sums = 0c98a9550084bf7b9fd1ac9c394c6499a129b9d439bab6a256b3a1f4695ce358 pkgname = youtube-dl-gui-git @@ -2,33 +2,100 @@ # Contributor: B4SH-B00STER pkgname=youtube-dl-gui-git -pkgver=0.4.r81.gc5c18e5 -pkgrel=2 +pkgver=1.7.0.r12.g8dbf054 +pkgrel=1 pkgdesc="Cross platform front-end GUI of the popular youtube-dl written in wxPython" arch=('any') -url="https://github.com/MrS0m30n3/youtube-dl-gui" +url="https://github.com/oleksis/youtube-dl-gui" license=('custom:UNLICENSE') -#depends=('python2-twodict' 'python2-wxpython3') -depends=('python2-twodict-git' 'python2-wxpython3') +# xdg-utils: xdg-open to open and play a file +depends=('python-pypubsub' 'python-wxpython' 'xdg-utils') optdepends=('ffmpeg: convert video files to audio-only files' - 'youtube-dl: alternative to the youtube-dl program downloaded by youtube-dl-gui') -makedepends=('git') + 'youtube-dl: alternative to the program downloaded by youtube-dl-gui') +makedepends=('git' 'python-polib' 'python-setuptools') provides=(${pkgname%-git}) conflicts=(${pkgname%-git}) source=($pkgname::git+$url.git youtube-dl-gui.desktop) sha256sums=('SKIP' - '1f687872e8105394e8b41ab99f3923e87b1cb6c041602147d7847bc4b8f26e8d') + '0c98a9550084bf7b9fd1ac9c394c6499a129b9d439bab6a256b3a1f4695ce358') pkgver() { - git -C $pkgname describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' + git -C $pkgname describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } +#build() { +# cd $pkgname +# python setup.py build build_trans +#} + package() { install -Dm644 youtube-dl-gui.desktop -t "$pkgdir/usr/share/applications" + install -Dm644 $pkgname/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" cd $pkgname - install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" - python2 setup.py install --root="$pkgdir" --optimize=1 + python setup.py build_trans install --root="$pkgdir" --optimize=1 # --skip-build } + + +# # Following the upstream build instructions +# # Change the Exec= line in youtube-dl-gui.desktop to Exec=youtube-dl-gui +# +# pkgname=youtube-dl-gui-git +# pkgver=0 +# pkgrel=1 +# pkgdesc="Cross platform front-end GUI of the popular youtube-dl written in wxPython" +# arch=('any') +# url="https://github.com/oleksis/youtube-dl-gui" +# license=('custom:UNLICENSE') +# # wxgtk3 is a wxpython dependency (see package python-wxpython) +# # xdg-utils: xdg-open to open and play a file +# depends=('wxgtk3' 'xdg-utils') +# optdepends=('ffmpeg: convert video files to audio-only files' +# 'youtube-dl: alternative to the program downloaded by youtube-dl-gui') +# makedepends=('git') +# provides=(${pkgname%-git}) +# conflicts=(${pkgname%-git}) +# source=($pkgname::git+$url.git +# youtube-dl-gui.desktop +# youtube-dl-gui) +# sha256sums=('SKIP' +# '0' +# '0') +# +# pkgver() { +# git -C $pkgname describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +# } +# +# #check() { +# # cd $pkgname +# # +# # source venv/bin/activate +# # make test +# #} +# +# package() { +# install -Dm755 youtube-dl-gui -t "$pkgdir/usr/bin" +# install -Dm644 youtube-dl-gui.desktop -t "$pkgdir/usr/share/applications" +# install -Dm644 $pkgname/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" +# +# cd $pkgname +# +# export PIP_CONFIG_FILE=/dev/null +# export TMPDIR="$srcdir/tmp" +# export XDG_CACHE_HOME="$srcdir/cache" +# +# mkdir -p "$TMPDIR" +# +# make clean-requirements +# make venv +# source venv/bin/activate +# make install +# +# rm -rf "$TMPDIR" +# +# install -dm755 "$pkgdir/usr/share/${pkgname%-git}" +# cp -a venv "$pkgdir/usr/share/${pkgname%-git}" +# } + diff --git a/youtube-dl-gui b/youtube-dl-gui new file mode 100755 index 000000000000..2b4e8c7bc354 --- /dev/null +++ b/youtube-dl-gui @@ -0,0 +1,5 @@ +#!/bin/sh + +source /usr/share/youtube-dl-gui/venv/bin/activate +yt-dlg + diff --git a/youtube-dl-gui.desktop b/youtube-dl-gui.desktop index 04cbdcb81b6c..02d4dc7aa503 100644 --- a/youtube-dl-gui.desktop +++ b/youtube-dl-gui.desktop @@ -2,7 +2,7 @@ Version=1.0 Type=Application Name=Youtube-dl GUI -Exec=youtube-dl-gui +Exec=yt-dlg Icon=youtube-dl-gui Categories=Network; Comment=GUI for youtube-dl downloader |