blob: ddbed9222c7c16dadea14788c4cc367d28d4a823 (
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
|
# 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
}
|