blob: b10c7d31902a76bc61bc7849bf58ae34ee811fb8 (
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
|
#Maintainer: Bhoppi Chaw <bhoppi#outlook,com>
pkgname=nutstore-experimental
pkgver=5.1.1
pkgrel=1
pkgdesc='Nutstore experimental version.'
arch=(x86_64)
url='https://www.jianguoyun.com/'
license=(custom)
depends=(
libappindicator-gtk3
libnotify
python-gobject
webkit2gtk
)
optdepends=('nautilus-nutstore: Nautilus plugin')
provides=(nutstore)
conflicts=(nutstore)
source=(nutstore license)
source_x86_64=("https://www.jianguoyun.com/static/exe/ex/$pkgver/nutstore_client-$pkgver-linux-x64-public.tar.gz")
sha256sums=('a4aa358d45b306cbeac449f2256f00a5b81a95197394eba7efa96eaae820cf5b'
'f3d2861ff48f2d193a4eced23a02b4eba9fab4c1d3f727e934ed7c59f38f0f7e')
sha256sums_x86_64=('1546c00b79fcbe9650c75894bff4855aa34e93636aa466f43baf7ccc29076b35')
build() {
cd $srcdir/gnome-config
sed -i '/Exec=/s|~/\.nutstore/dist/bin/nutstore-pydaemon.py|/usr/bin/nutstore|' menu/nutstore-menu.desktop
sed -i '/Exec=/s|~/\.nutstore/dist|/opt/nutstore|' autostart/nutstore-daemon.desktop
cd $srcdir/bin
python -m compileall .
}
package() {
cd $srcdir
install -D -m755 nutstore $pkgdir/usr/bin/nutstore
install -D -m644 license $pkgdir/usr/share/licenses/nutstore/license
rm nutstore license *.tar.gz
mkdir -p $pkgdir/opt/nutstore && cp -aR ./ $pkgdir/opt/nutstore
install -D -m644 gnome-config/menu/nutstore-menu.desktop $pkgdir/usr/share/applications/nutstore.desktop
install -D -m644 app-icon/nutstore.png $pkgdir/usr/share/icons/hicolor/64x64/apps/nutstore.png
}
|