summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a344b6d8bb69051e9edb7e99be24fc3208a0674e (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
# Maintainer: Jesse Bryan <jesse@winneon.moe>
pkgname=watch-with-mpv-git
_pkgname=watch-with-mpv
pkgver=20180207.9c3ca63
pkgrel=1
pkgdesc="The native host for the Watch with MPV Chrome extension."
arch=("any")
url="https://github.com/winneon/${_pkgname}"
license=("GPL2")
provides=("${_pkgname}")
conflicts=("${_pkgname}")
depends=("mpv" "youtube-dl>=2017.08.06")
makedepends=("git" "nodejs" "npm")
options=("!strip") # Required to keep the packaged node binary intact.
source=("${pkgname}::git+https://github.com/winneon/watch-with-mpv.git")
sha256sums=("SKIP")

pkgver() {
    cd "${pkgname}"
    git log -1 --format="%cd.%h" --date=short | tr -d -
}

build() {
    cd "${pkgname}/native"
    npm install --cache "${srcdir}/npm-cache"
    npm run build
}

package() {
    cd "${pkgname}/native/build/linux"
    make DESTDIR="${pkgdir}" install
}