summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 779a556091eb692bfc0946fc62d1f533c1a72bee (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
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
# Contributor: 	ston <ston dot jia at qq dot com>
pkgname=play-in-mpv
_pkgname="${pkgname//-/}"
pkgver=1.0.4
pkgrel=6
pkgdesc='Play Bilibili video in mpv player.'
arch=('x86_64')
license=('LicenseRef-unknown')
url='https://github.com/diannaojiang/Bilibili-Playin-Mpv'
provides=("${pkgname}=${pkgver}")
conflicts=(
	"${pkgname}"
	"${_pkgname}"
)
depends=(
	'xdg-utils'
	'mpv'
)
makedepends=(
	'gendesk'
)
options=(
	'!strip'
	'!emptydirs'
)
source=(
	"${pkgname}-${pkgver}.zip::${url}/releases/download/v${pkgver}/Bilibili-Playin-Mpv.v1.0.Linux.${CARCH}.zip"
)
sha256sums=('681505428d5703f91c414dfd8e6aab45221c96e072853bdfece6eaafa4f7b461')
build() {
	gendesk -q -f -n --categories="AudioVideo" --name="${pkgname}" --exec="${pkgname} %U" --mimetypes="x-scheme-handler/mpv;"
}
package() {
	install -Dm755 "${srcdir}/${_pkgname}" "${pkgdir}/usr/bin/${pkgname}"
	install -Dm644 "${srcdir}/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
}