summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8589e997b7d47246611ec373999e3fdac6b0ef76 (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
# Maintainer:   selpast <selpast@pm.me>

pkgname='mpv-discordrpc-git'
pkgver=1.4.1.UNKNOWN.r5.gc8270e5
pkgrel=1
pkgdesc='Discord Rich Presence integration for mpv Media Player'
url='https://github.com/cniw/mpv-discordRPC'
arch=('any')
license=('MIT')
depends=('discord-rpc')
source=(git+${url}.git)
sha256sums=(SKIP)
pkgver() {
    cd mpv-discordRPC
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd ${srcdir}/mpv-discordRPC
  mkdir -p ${pkgdir}/etc/mpv/scripts/mpv-discordRPC/
  mkdir -p ${pkgdir}/etc/mpv/script-opts/
  install -Dm644 "status-line.lua" "${pkgdir}/etc/mpv/scripts/"
  install -Dm644 "mpv_discordRPC.conf" "${pkgdir}/etc/mpv/script-opts/"
  install -Dm644 "mpv-discordRPC/lua-discordRPC.lua" "${pkgdir}/etc/mpv/scripts/mpv-discordRPC/"
  install -Dm644 "mpv-discordRPC/catalogs.lua" "${pkgdir}/etc/mpv/scripts/mpv-discordRPC/"
  install -Dm644 "mpv-discordRPC/main.lua" "${pkgdir}/etc/mpv/scripts/mpv-discordRPC/"
  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}