blob: ff074c2a45137d689d77ac08cf1649dd17e5e399 (
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
|
# Contributor: Adrian Petrescu <apetresc@gmail.com>
# Maintainer: Adrian Petrescu <apetresc@gmail.com>
pkgname=sabaki
pkgver=0.43.2
pkgrel=1
pkgdesc='An elegant SGF editor for the game of Go'
arch=('any')
url='http://sabaki.yichuanshen.de/'
license=('MIT')
depends=('nodejs' 'gconf')
makedepends=('npm')
install=${pkgname}.install
source=("https://github.com/SabakiHQ/Sabaki/archive/v${pkgver}.tar.gz"
"${pkgname}.desktop"
'sabaki.xml')
md5sums=('33c5e31c740b763031a05f6b8b69ed24'
'b39f3b91292cb3983124bd38035fbd8e'
'efbd547e892c7781a5ece702d389dd9e')
build() {
cd $srcdir/Sabaki-$pkgver
npm install --cache "${srcdir}/npm-cache"
npm run build
}
check() {
cd $srcdir/Sabaki-$pkgver
npm test
}
package() {
mkdir $pkgdir/opt
cp -r $srcdir/Sabaki-$pkgver/dist/linux-unpacked $pkgdir/opt/Sabaki
install -Dm644 ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
install -Dm644 ${srcdir}/${pkgname}.xml ${pkgdir}/usr/share/mime/packages/${pkgname}.xml
}
|