summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 98686893ed4fc428e8d4ea09e519f756209aa416 (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
# Maintainer: katt <magunasu.b97@gmail.com>

pkgname=mpv-webm-git
pkgver=r84.9b5da33
pkgrel=1
pkgdesc='Simple WebM maker for mpv'
arch=(any)
url='https://github.com/ekisu/mpv-webm'
license=(MIT)
depends=(mpv)
makedepends=(git moonscript)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=(git+"${url}".git)
md5sums=(SKIP)

pkgver() {
	cd "${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "${pkgname%-git}"
	make
}

package() {
	install -Dm644 "${pkgname%-git}/build/webm.lua" -t "$pkgdir/usr/lib/mpv"
	install -Dm644 "${pkgname%-git}/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
}