blob: 5b0bd660e55f21aa5e6520ed0f06eaffab98036f (
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
|
# Maintainer: Lamelos <lamelos plus aur at gmail dot com>
_shortpkgname=ff2mpv
_pkgname=$_shortpkgname-native-messaging-host
pkgname=$_pkgname-git
pkgver=r51.2fca452
pkgrel=1
pkgdesc='Native Messaging Host for ff2mpv firefox addon.'
license=('MIT')
url='https://github.com/woodruffw/ff2mpv'
arch=('any')
makedepends=('git')
depends=('python' 'mpv')
install=$_shortpkgname.install
source=("$_shortpkgname"::"git+https://github.com/woodruffw/ff2mpv.git"
"point-ff2mpv-config-to-python-location.patch")
sha256sums=('SKIP'
'781abb58bf62138ad603bc67e3227fb8d421091daf9e7475c45d971730b34090')
pkgver() {
cd "$srcdir/$_shortpkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir"
patch -Np1 -i point-ff2mpv-config-to-python-location.patch
}
package() {
cd "$srcdir/$_shortpkgname"
install -Dm655 "ff2mpv.py" "$pkgdir/usr/share/ff2mpv/ff2mpv.py"
install -Dm644 "ff2mpv.json" "$pkgdir/usr/lib/mozilla/native-messaging-hosts/ff2mpv.json"
}
# vim: ts=2 sw=2 et:
|