fix depends

This commit is contained in:
zxp19821005
2023-07-03 09:16:48 +08:00
parent 816a30647e
commit cb107169b7
2 changed files with 8 additions and 7 deletions

View File

@@ -1,12 +1,13 @@
pkgbase = open-video-downloader-appimage
pkgdesc = A cross-platform GUI for youtube-dl made in Electron and node.js
pkgver = 2.4.10
pkgrel = 1
pkgrel = 2
url = https://github.com/StefanLobbenmeier/youtube-dl-gui
arch = x86_64
license = AGPL3
depends = zlib
depends = glibc
depends = python-mutagen
conflicts = open-video-downloader
conflicts = youtube-dl-gui
options = !strip

View File

@@ -1,22 +1,22 @@
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname="open-video-downloader-appimage"
pkgver=2.4.10
pkgrel=1
pkgrel=2
pkgdesc="A cross-platform GUI for youtube-dl made in Electron and node.js"
arch=('x86_64')
url="https://github.com/StefanLobbenmeier/youtube-dl-gui"
license=('AGPL3')
conflicts=("${pkgname%-appimage}" "youtube-dl-gui")
depends=('zlib' 'glibc')
options=(!strip)
depends=('zlib' 'glibc' 'python-mutagen')
options=('!strip')
_install_path="/opt/appimages"
source=("${pkgname%-appimage}-${pkgver}.AppImage::${url}/releases/download/v${pkgver}/Open-Video-Downloader-${pkgver}.AppImage")
sha256sums=('e99cf7780eebbe74a1e45cbac822f965c7e7299193adce39b37240d75d8e2389')
prepare() {
chmod a+x "${pkgname%-appimage}-${pkgver}.AppImage"
"./${pkgname%-appimage}-${pkgver}.AppImage" --appimage-extract > /dev/null
sed 's|AppRun|/opt/appimages/open-video-downloader.AppImage|g;s|youtube-dl-gui|open-video-downloader|g;s|X-utility|Utility|g' \
chmod a+x "${pkgdir}/${pkgname%-appimage}-${pkgver}.AppImage"
"${pkgdir}/${pkgname%-appimage}-${pkgver}.AppImage" --appimage-extract > /dev/null
sed "s|AppRun|${_install_path}/${pkgname%-appimage}.AppImage|g;s|youtube-dl-gui|${pkgname%-appimage}|g;s|X-utility|Utility|g" \
-i "${srcdir}/squashfs-root/${pkgname%-appimage}.desktop"
}