blob: b79c5ac9a1ef5af985064ff1c6c0a4a8638a6c8f (
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
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Kevin J. Sung <kevjsung@umich.edu>
pkgname=katago-analyze-sgf
pkgver=0.1.1
pkgrel=2
pkgdesc='Add analysis to SGF files using KataGo'
url='https://github.com/kevinsung/katago-analyze-sgf'
arch=('x86_64')
license=('MIT')
depends=('nodejs')
makedepends=('npm')
backup=('etc/conf.d/katago-analyze-sgf')
source=("$pkgname-$pkgver.tar.gz::https://github.com/kevinsung/katago-analyze-sgf/archive/refs/tags/v$pkgver.tar.gz"
katago-analyze-sgf.conf
katago-analyze-sgf.service
katago-analyze-sgf.sysusers
katago-analyze-sgf.tmpfiles)
sha256sums=('026aac1c919d6a52a01a2f5a80b200cd0b780618063ce236646dc4ddc01e9831'
'b4225a1ecab44c28fd07ed8cd958462dbe0792b867169d14dde038288c87bf2d'
'a8e9ae8f18176b6efb34053f1339412712cd3aa9cbbd779bc1bc0da5f86e1824'
'd7d652a7e4329e777c5c5fbedad84c243ac5721e980a8adc8c10ad51fad54c0e'
'1e3699842af258b6af3747bca815773f7b338116320d7d98ae9a304bebff439d')
build() {
cd $pkgname-$pkgver
npm install
npm run build
}
package () {
install -Dm644 katago-analyze-sgf.conf "$pkgdir"/etc/conf.d/katago-analyze-sgf
install -Dm644 katago-analyze-sgf.service "$pkgdir"/usr/lib/systemd/system/katago-analyze-sgf.service
install -Dm644 katago-analyze-sgf.sysusers "$pkgdir"/usr/lib/sysusers.d/katago-analyze-sgf.conf
install -Dm644 katago-analyze-sgf.tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/katago-analyze-sgf.conf
cd $pkgname-$pkgver
install -Dm755 katago-analyze-sgf-daemon-bundled.js "$pkgdir"/usr/bin/katago-analyze-sgf-daemon
install -Dm755 katago-analyze-sgf-cli-bundled.js "$pkgdir"/usr/bin/katago-analyze-sgf-cli
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/katago-analyze-sgf/LICENSE
}
|