blob: 797faf128df25e2d90d076774c55eaa48ab40df0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Maintainer: LunarEclipse <luna@lunareclipse.zone>
pkgname=textern-native-messaging-host
pkgver=0.8
pkgrel=1
pkgdesc='Native Messaging Host for the Textern firefox addon.'
arch=('any')
url='https://github.com/jlebon/textern'
license=('GPL3')
depends=('python' 'python-inotify-simple')
install='textern.install'
source=(
'textern'::"git+https://github.com/jlebon/textern.git#tag=v$pkgver"
)
b2sums=('SKIP')
build() {
sed -e 's|@@NATIVE_PATH@@|/usr/lib/textern/textern.py|' "$srcdir/textern/native/textern.json.in" > "$srcdir/textern/native/textern.json"
}
package() {
install -D "$srcdir/textern/native/textern.py" -t "$pkgdir/usr/lib/textern/"
install -Dm644 "$srcdir/textern/native/textern.json" -t "$pkgdir/usr/lib/mozilla/native-messaging-hosts/"
}
|