lilac/repo/vdhcoapp-bin/PKGBUILD

44 lines
1.4 KiB
Bash
Raw Permalink Normal View History

2024-03-23 14:53:21 +00:00
# Maintainer: Paragoumba <aur@paragoumba.fr>
# Contributor: Mario Ray MahardhikZza <leledumbo_cool@yahoo.co.id>
# Contributor: James Cuzella <james.cuzella@lyraphase.com>
2024-06-01 11:01:24 +00:00
_pkgname=vdhcoapp
pkgname="$_pkgname-bin"
2024-12-21 07:07:37 +00:00
pkgver=2.0.20
2024-06-01 11:01:24 +00:00
pkgrel=2
2024-03-23 14:53:21 +00:00
arch=('x86_64')
2024-06-01 11:01:24 +00:00
pkgdesc="Companion application for Video DownloadHelper browser add-on (binary version)"
2024-03-23 14:53:21 +00:00
url="https://github.com/aclap-dev/vdhcoapp"
2024-06-01 11:01:24 +00:00
license=('GPL-2.0-or-later')
options=('emptydirs' '!strip') # IMPORTANT! DO NOT REMOVE THIS, OTHERWISE THE BINARY WILL BE BROKEN!
install="$_pkgname.install"
provides=("vdhcoapp=$pkgver")
conflicts=('vdhcoapp')
source=("$_pkgname-$pkgver-linux-$arch.deb::https://github.com/aclap-dev/$_pkgname/releases/download/v${pkgver}/$_pkgname-linux-$arch.deb")
2024-12-21 07:07:37 +00:00
sha256sums=('312423d4ad54bf8bf391efa3669a4aafa7c98d9aaf1fe4af3d5b5014c28f4730')
2024-03-23 14:53:21 +00:00
prepare() {
2024-06-01 11:01:24 +00:00
mkdir -p "$srcdir/$pkgname"
2024-03-23 14:53:21 +00:00
}
package() {
2024-06-01 11:01:24 +00:00
depends+=('ffmpeg')
tar xf data.tar.xz -C "$pkgdir" "./opt/$_pkgname/filepicker" "./opt/$_pkgname/$_pkgname"
ln -sf /usr/bin/ffmpeg "${pkgdir}/opt/$_pkgname/ffmpeg"
ln -sf /usr/bin/ffprobe "${pkgdir}/opt/$_pkgname/ffprobe"
install -dm755 "$pkgdir/usr/bin"
ln -sf "/opt/vdhcoapp/vdhcoapp" "${pkgdir}/usr/bin/vdhcoapp"
install -dm755 "$pkgdir/usr/lib/mozilla/native-messaging-hosts/"
install -dm755 "$pkgdir/etc/opt/chrome/native-messaging-hosts/"
install -dm755 "$pkgdir/etc/chromium/native-messaging-hosts/"
install -dm755 "$pkgdir/etc/opt/edge/native-messaging-hosts/"
2024-03-23 14:53:21 +00:00
}