summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8bc1198556914dd968a7da079e15ffe9077cc0ca (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
# Maintainer: taotieren <admin@taotieren.com>

pkgname=vlc-protocol
pkgver=1.3.5
pkgrel=1
epoch=
pkgdesc="VLC Protocol Handler - - Support vlc:// protocol links"
arch=('any')
url="https://github.com/northsea4/vlc-protocol"
license=('GPL-3.0-or-later')
provides=(${pkgname})
conflicts=(${pkgname})
replaces=()
depends=(
    sh
    xdg-utils
    vlc)
makedepends=(libarchive)
optdepends=('firefox: Fast, Private & Safe Web Browser'
    'chromium: A web browser built for speed, simplicity, and security '
    'google-chrome: The popular web browser by Google (Stable Channel)')
backup=()
options=('!strip' '!debug')
install=${pkgname}.install
source=(
    "${pkgname}.install"
    "${pkgname}-linux-${pkgver}.zip::${url}/releases/download/v${pkgver}/${pkgname}-linux.zip")
sha256sums=('879e060df1bcb21837ba452f90f75c49f2952a64a4ea66b1d8444b4029ad10f2'
            '5f0d8377eb7b318eadaa322ac31d49102b9ee6911433ef1b9e21531c3c2cca26')
noextract=(
    ${pkgname}-linux-${pkgver}.zip)

package() {
    cd ${srcdir}
    mkdir -pv ${pkgname}-linux-${pkgver}
    bsdtar -xf "${pkgname}-linux-${pkgver}.zip" -C ${srcdir}/${pkgname}-linux-${pkgver}

    install -Dm755 "${srcdir}"/${pkgname}-linux-${pkgver}/vlc-protocol -t "${pkgdir}/usr/bin/"
    install -Dm644 "${srcdir}"/${pkgname}-linux-${pkgver}/vlc-protocol.desktop -t "${pkgdir}/usr/share/applications/"
}