diff options
Diffstat (limited to 'pcr/youtube-dl-gui')
-rw-r--r-- | pcr/youtube-dl-gui/PKGBUILD | 43 | ||||
-rw-r--r-- | pcr/youtube-dl-gui/UNLICENSE | 24 | ||||
-rw-r--r-- | pcr/youtube-dl-gui/youtube-dl-gui.desktop | 8 | ||||
-rw-r--r-- | pcr/youtube-dl-gui/youtube-dl-gui.install | 12 |
4 files changed, 87 insertions, 0 deletions
diff --git a/pcr/youtube-dl-gui/PKGBUILD b/pcr/youtube-dl-gui/PKGBUILD new file mode 100644 index 000000000..ddbed9222 --- /dev/null +++ b/pcr/youtube-dl-gui/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: David P. <megver83@parabola.nu> +# Contributor: willemw <willemw12@gmail.com> +# Contributor: B4SH-B00STER + +pkgname=youtube-dl-gui +pkgver=0.3.8.e9dff42 +pkgrel=1 +pkgdesc="A cross platform front-end GUI of the popular youtube-dl written in wxPython" +arch=('any') +url="https://github.com/MrS0m30n3/youtube-dl-gui" +license=('custom:UNLICENSE') +depends=('gtk-update-icon-cache' 'python2' 'wxpython') +optdepends=('ffmpeg: convert video files to audio-only files' + 'youtube-dl: alternative to the youtube-dl program file downloaded by youtube-dl-gui') +makedepends=('git') +conflicts=($pkgname-git) +install=$pkgname.install +source=($pkgname::git+$url.git + youtube-dl-gui.desktop) +md5sums=('SKIP' + '298421ed0a9e2c6475e0bb3f86d2d2a7') + +#pkgver() { +# cd $pkgname +# git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +#} + +package() { + install -Dm644 youtube-dl-gui.desktop "$pkgdir/usr/share/applications/youtube-dl-gui.desktop" + + cd $pkgname + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + python2 setup.py install --root="$pkgdir" --optimize=1 + + # Patch: add "youtube-dl-gui.png" icon filenames + for dir in "$pkgdir"/usr/share/icons/hicolor/*/apps "$pkgdir/usr/share/pixmaps"; do + cd "$dir" + for icon in youtube-dl-gui_*.png; do + ln -s $icon youtube-dl-gui.png + done + done +} + diff --git a/pcr/youtube-dl-gui/UNLICENSE b/pcr/youtube-dl-gui/UNLICENSE new file mode 100644 index 000000000..68a49daad --- /dev/null +++ b/pcr/youtube-dl-gui/UNLICENSE @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to <http://unlicense.org/> diff --git a/pcr/youtube-dl-gui/youtube-dl-gui.desktop b/pcr/youtube-dl-gui/youtube-dl-gui.desktop new file mode 100644 index 000000000..04cbdcb81 --- /dev/null +++ b/pcr/youtube-dl-gui/youtube-dl-gui.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=Youtube-dl GUI +Exec=youtube-dl-gui +Icon=youtube-dl-gui +Categories=Network; +Comment=GUI for youtube-dl downloader diff --git a/pcr/youtube-dl-gui/youtube-dl-gui.install b/pcr/youtube-dl-gui/youtube-dl-gui.install new file mode 100644 index 000000000..5f3cb0109 --- /dev/null +++ b/pcr/youtube-dl-gui/youtube-dl-gui.install @@ -0,0 +1,12 @@ +post_install() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} + |