blob: 6e7a53eb183dcc24ecde18bd17389b4a205dc3de (
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
|
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
pkgname=gsubs
pkgver=1.0.3
pkgrel=2
pkgdesc="A desktop app that finds you the perfect subtitle match"
arch=('x86_64')
url="https://cholaware.com/gsubs"
license=('MIT')
depends=('electron9')
makedepends=('npm')
source=("$pkgname-$pkgver.tar.gz::https://github.com/sanjevirau/gsubs/archive/v$pkgver.tar.gz"
"$pkgname.desktop"
"$pkgname.sh")
sha256sums=('c75c59f273fa8fe8bc98182f50486552defb91dff247571509e436809b76a245'
'977b34d613aeac66d6009033e03c6d5138135be079bb5c6ab1442c91251683bf'
'01eb6b7b04403e5d8df76ba0ad4601e22054d25f922d7cab3b7f8a9d9877804c')
build() {
cd "$pkgname-$pkgver"
npm install --cache "$srcdir/npm-cache"
npm run pack
}
package() {
cd "$pkgname-$pkgver"
install -d "$pkgdir/usr/lib/$pkgname"
cp -r dist/linux-unpacked/resources "$pkgdir/usr/lib/$pkgname"
install -Dm644 build/icon.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm644 "$srcdir/$pkgname.desktop" -t "$pkgdir/usr/share/applications"
install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
}
|