Skip to content

Instantly share code, notes, and snippets.

@Swyter
Last active April 8, 2016 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Swyter/7cf9efdea62f84e38312018880f9bf9f to your computer and use it in GitHub Desktop.
Save Swyter/7cf9efdea62f84e38312018880f9bf9f to your computer and use it in GitHub Desktop.
diff -u ./youtube-dl-gui-git/PKGBUILD ./youtube-dl-gui-git-mod/PKGBUILD
--- ./youtube-dl-gui-git/PKGBUILD 2015-06-08 17:21:17.000000000 +0200
+++ ./youtube-dl-gui-git-mod/PKGBUILD 2016-04-08 16:08:50.277951261 +0200
@@ -1,8 +1,9 @@
-# Maintainer: willemw <willemw12@gmail.com>
+# Maintainer: willemw <willemw12@gmail.com>
+# Contributor: swyter <swyterzone+aur@gmail.com>
_pkgname=youtube-dl-gui
pkgname=$_pkgname-git
-pkgver=r255.d335cb4
+pkgver=r306.aa74cc2
pkgrel=1
pkgdesc="A cross platform front-end GUI of the popular youtube-dl written in wxPython"
arch=('any')
@@ -20,7 +21,7 @@
UNLICENSE)
# http://unlicense.org/UNLICENSE)
md5sums=('SKIP'
- '55914f7c32fafa895d7bf447efc9c18e'
+ '298421ed0a9e2c6475e0bb3f86d2d2a7'
'7246f848faa4e9c9fc0ea91122d6e680')
pkgver() {
@@ -41,5 +42,13 @@
cd $_pkgname
python2 setup.py install --root="$pkgdir" --optimize=1
install -Dm755 youtube_dl_gui/__main__.py "$pkgdir/usr/bin/youtube-dl-gui"
+
+ # make the icons linux-compatible, remove the size
+ # suffix to make it work with the xdg spec
+ cd "$pkgdir"
+ for icon in `find . -name *.png`; do
+ target=$(echo $icon|sed -e 's/_[0-9]*x[0-9]*//g')
+ mv "$icon" "$target"
+ done
}
Only in ./youtube-dl-gui-git-mod/: src
Only in ./youtube-dl-gui-git-mod/: youtube-dl-gui
diff -u ./youtube-dl-gui-git/youtube-dl-gui.desktop ./youtube-dl-gui-git-mod/youtube-dl-gui.desktop
--- ./youtube-dl-gui-git/youtube-dl-gui.desktop 2015-06-08 17:21:17.000000000 +0200
+++ ./youtube-dl-gui-git-mod/youtube-dl-gui.desktop 2016-04-08 15:32:35.059479790 +0200
@@ -3,6 +3,6 @@
Type=Application
Name=Youtube-dl GUI
Exec=youtube-dl-gui
-Icon=youtube-dl-gui_48x48
+Icon=youtube-dl-gui
Categories=Network;
Comment=GUI for youtube-dl downloader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment