diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 74 |
1 files changed, 10 insertions, 64 deletions
@@ -1,8 +1,9 @@ -# Maintainer: willemw <willemw12@gmail.com> +# Maintainer: jose <jose1711 gmail com> +# Contributor: willemw <willemw12@gmail.com> # Contributor: B4SH-B00STER pkgname=youtube-dl-gui-git -pkgver=1.8.4.r22.g23ccbc4 +pkgver=1.8.5.r57.g574ed2e pkgrel=1 pkgdesc="Cross platform front-end GUI of the popular youtube-dl written in wxPython" arch=('any') @@ -14,7 +15,7 @@ optdepends=('ffmpeg: convert video files to audio-only files' 'youtube-dl: alternative to the program downloaded by youtube-dl-gui') makedepends=('git' 'python-polib' 'python-setuptools') provides=(${pkgname%-git}) -conflicts=(${pkgname%-git}) +# conflicts=(${pkgname%-git}) source=($pkgname::git+$url.git) sha256sums=('SKIP') @@ -22,72 +23,17 @@ pkgver() { 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() { cd $pkgname python setup.py build_trans install --root="$pkgdir" --optimize=1 # --skip-build install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/${pkgname%-git}" install -Dm644 yt-dlg.desktop -t "$pkgdir/usr/share/applications" -} - + find $pkgdir/usr/share/icons $pkgdir/usr/share/pixmaps -name youtube-dl-gui.png | while read -r i + do + mv $i "${i%.png}-wx.png" + done -# # Following the upstream build instructions -# -# 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) -# sha256sums=('SKIP' '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 $pkgname/LICENSE -t "$pkgdir/usr/share/licenses/${pkgname%-git}" -# -# 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}" -# } - + sed -i '/^Icon/s/$/-wx/' "$pkgdir/usr/share/applications/yt-dlg.desktop" +} |