blob: 36d79202e0f60e2f3d9b13803b9c731421b327ae (
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
47
48
|
# Maintainer: Bruce Zhang
pkgname=desktop-naotu
_name=DesktopNaotu
pkgver=3.2.3
pkgrel=4
pkgdesc="桌面版脑图 (百度脑图离线版,思维导图) 跨平台支持 Windows/Linux/Mac OS. (A cross-platform multilingual Mind Map Tool)"
arch=('x86_64')
url="https://github.com/NaoTu/DesktopNaotu"
license=('GPL2')
depends=('electron4')
makedepends=('npm' 'bower' 'git' 'gulp')
conflicts=('naotu')
source=(
"$pkgname-$pkgver.tar.gz::https://github.com/NaoTu/DesktopNaotu/archive/v${pkgver}.tar.gz"
"build.patch"
"desktop-naotu.sh"
"desktop-naotu.desktop"
)
sha256sums=('1e26be6516c6c7867c4b89ac0d6a27519b6a8250f5356e183b3b9bd7a745e59b'
'826a91abc8eaaac5d23774c032f32c0925d3282fd8a70cc3a1206005b5c44f3a'
'832dbebdec648d569a1317f839579609090ae8b802917615269ebec7391f692e'
'bb82fce20f15a8cba3cd817c49d2e25e4cf61436a33cf946b724f2734b66a2dc')
prepare() {
cd "$srcdir/$_name-$pkgver"
if [ "$pkgver" = "3.2.3" ]; then
patch -p1 < "$srcdir/build.patch"
fi
npm install
bower install
}
build() {
cd "$srcdir/$_name-$pkgver"
gulp
npm run packlinux
}
package() {
cd "$srcdir/$_name-$pkgver"
install -Dm644 "$srcdir/OutApp/DesktopNaotu-linux-x64/resources/app.asar" "$pkgdir/usr/share/desktop-naotu/app.asar"
install -Dm644 "$srcdir/$_name-$pkgver/app/static/favicon.png" "$pkgdir/usr/share/icons/hicolor/48x48/apps/desktop-naotu.png"
install -Dm755 "$srcdir/desktop-naotu.sh" "$pkgdir/usr/bin/desktop-naotu"
install -Dm644 "$srcdir/desktop-naotu.desktop" "$pkgdir/usr/share/applications/desktop-naotu.desktop"
}
|