summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorwillemw122016-04-08 21:41:54 +0200
committerwillemw122016-04-08 21:41:54 +0200
commitd485725d2db2b0f91937e58d3e1585d10e66f263 (patch)
tree846111918e3b16cb20f1027571a85f114ed6f262
parentc68a3d41eab7e49c0042a272bd8b8da17e550127 (diff)
downloadaur-d485725d2db2b0f91937e58d3e1585d10e66f263.tar.gz
Add "youtube-dl-gui.png" icon filenames. Cleanup PKGBUILD.
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD27
-rw-r--r--youtube-dl-gui.desktop2
3 files changed, 18 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fb1dc61b308..0a9f1b0f72f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = youtube-dl-gui-git
pkgdesc = A cross platform front-end GUI of the popular youtube-dl written in wxPython
- pkgver = r255.d335cb4
+ pkgver = 0.3.8.r53.gaa74cc2
pkgrel = 1
url = https://github.com/MrS0m30n3/youtube-dl-gui
install = youtube-dl-gui-git.install
@@ -14,11 +14,11 @@ pkgbase = youtube-dl-gui-git
optdepends = youtube-dl: alternative to the youtube-dl program file downloaded by youtube-dl-gui
provides = youtube-dl-gui
conflicts = youtube-dl-gui
- source = git://github.com/MrS0m30n3/youtube-dl-gui.git
+ source = youtube-dl-gui-git::git://github.com/MrS0m30n3/youtube-dl-gui.git
source = youtube-dl-gui.desktop
source = UNLICENSE
md5sums = SKIP
- md5sums = 55914f7c32fafa895d7bf447efc9c18e
+ md5sums = 298421ed0a9e2c6475e0bb3f86d2d2a7
md5sums = 7246f848faa4e9c9fc0ea91122d6e680
pkgname = youtube-dl-gui-git
diff --git a/PKGBUILD b/PKGBUILD
index 8938c68f24c..b4b86dad2a3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
_pkgname=youtube-dl-gui
pkgname=$_pkgname-git
-pkgver=r255.d335cb4
+pkgver=0.3.8.r53.gaa74cc2
pkgrel=1
pkgdesc="A cross platform front-end GUI of the popular youtube-dl written in wxPython"
arch=('any')
@@ -15,31 +15,32 @@ makedepends=('git')
provides=($_pkgname)
conflicts=($_pkgname)
install=$pkgname.install
-source=(git://github.com/MrS0m30n3/$_pkgname.git
+source=($pkgname::git://github.com/MrS0m30n3/youtube-dl-gui.git
youtube-dl-gui.desktop
UNLICENSE)
# http://unlicense.org/UNLICENSE)
md5sums=('SKIP'
- '55914f7c32fafa895d7bf447efc9c18e'
+ '298421ed0a9e2c6475e0bb3f86d2d2a7'
'7246f848faa4e9c9fc0ea91122d6e680')
pkgver() {
- cd $_pkgname
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
-}
-
-prepare() {
- cd $_pkgname
- sed -i 's|usr/local/share|usr/share|' setup.py
- sed -i 's|#![ ]*/usr/bin/env python[ ]*$|#!/usr/bin/env python2|' setup.py youtube_dl_gui/*.py
+ 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"
install -Dm644 UNLICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
- cd $_pkgname
+ cd $pkgname
python2 setup.py install --root="$pkgdir" --optimize=1
- install -Dm755 youtube_dl_gui/__main__.py "$pkgdir/usr/bin/youtube-dl-gui"
+
+ # 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/youtube-dl-gui.desktop b/youtube-dl-gui.desktop
index d7ad2deafbd..04cbdcb81b6 100644
--- a/youtube-dl-gui.desktop
+++ b/youtube-dl-gui.desktop
@@ -3,6 +3,6 @@ Version=1.0
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