diff options
author | Bhoppi Chaw | 2016-08-04 06:06:14 +0800 |
---|---|---|
committer | Bhoppi Chaw | 2016-08-04 06:06:14 +0800 |
commit | e62a4795746ef4160cae69bcd1ffa3354bb3ad4b (patch) | |
tree | 8676eed093ed526aa5c42114e1e9620c77de3a69 | |
parent | a9f49f0f843dadab21a937a99e954b67b6b326ff (diff) | |
download | aur-e62a4795746ef4160cae69bcd1ffa3354bb3ad4b.tar.gz |
now automatically fix autostart issue; add a executable in /usr/bin; upgrade to pacman5
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 22 | ||||
-rwxr-xr-x | nutstore | 4 | ||||
-rw-r--r-- | nutstore.install | 21 |
4 files changed, 19 insertions, 37 deletions
@@ -1,11 +1,10 @@ -# Generated by makepkg 4.2.1 -# Thu May 28 08:11:49 UTC 2015 +# Generated by mksrcinfo v8 +# Wed Aug 3 22:04:28 UTC 2016 pkgbase = nutstore pkgdesc = a cloud service that lets you sync and share files anywhere. pkgver = 3.3.2 - pkgrel = 1 + pkgrel = 2 url = https://jianguoyun.com/ - install = nutstore.install arch = x86_64 arch = i686 license = custom @@ -13,7 +12,9 @@ pkgbase = nutstore depends = java-runtime depends = python2-notify optdepends = nautilus-nutstore: Nautilus plugin + source = nutstore source = license + md5sums = be61391e4752490bdf8a402413d79814 md5sums = 3d2b5207cb2f8faeb22625976953151d source_x86_64 = https://jianguoyun.com/static/exe/st/3.3.2/nutstore_client-3.3.2-linux-x64.tar.gz md5sums_x86_64 = 36dd79961502afaef2d5d82f7909400e @@ -2,7 +2,7 @@ pkgname=nutstore pkgver=3.3.2 -pkgrel=1 +pkgrel=2 pkgdesc='a cloud service that lets you sync and share files anywhere.' arch=(x86_64 i686) url='https://jianguoyun.com/' @@ -11,31 +11,29 @@ depends=(gtk2 java-runtime python2-notify) optdepends=('nautilus-nutstore: Nautilus plugin') -install='nutstore.install' -source=(license) +source=(nutstore license) source_x86_64=("https://jianguoyun.com/static/exe/st/$pkgver/nutstore_client-$pkgver-linux-x64.tar.gz") source_i686=("https://jianguoyun.com/static/exe/st/$pkgver/nutstore_client-$pkgver-linux-x86.tar.gz") -md5sums=(3d2b5207cb2f8faeb22625976953151d) +md5sums=(be61391e4752490bdf8a402413d79814 3d2b5207cb2f8faeb22625976953151d) md5sums_x86_64=(36dd79961502afaef2d5d82f7909400e) md5sums_i686=(f9a180369f6ceef58cf4f2cc20355ad4) build() { cd $srcdir - sed -i -e '1s/python/python2/' bin/nutstore-pydaemon.py + sed -i '1s/python/python2/' bin/nutstore-pydaemon.py cd gnome-config - sed -i -e '/Exec=/s,~/\.nutstore/dist,/opt/nutstore,'\ - menu/nutstore-menu.desktop autostart/nutstore-daemon.desktop + 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 } package() { cd $srcdir - install -D -m 644 license $pkgdir/usr/share/licenses/$pkgname/license + install -D -m755 nutstore $pkgdir/usr/bin/nutstore + install -D -m644 license $pkgdir/usr/share/licenses/$pkgname/license rm license *.tar.gz mkdir -p $pkgdir/opt/$pkgname && cp -aR ./ $pkgdir/opt/$pkgname - install -D -m 644 gnome-config/menu/nutstore-menu.desktop\ - $pkgdir/usr/share/applications/nutstore-menu.desktop - install -D -m 644 app-icon/nutstore.png\ - $pkgdir/usr/share/icons/hicolor/64x64/apps/nutstore.png + 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 } diff --git a/nutstore b/nutstore new file mode 100755 index 000000000000..a48798abbd62 --- /dev/null +++ b/nutstore @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +STARTPATH='gnome-config/autostart/nutstore-daemon.desktop' +install -CD /opt/nutstore/$STARTPATH ~/.nutstore/dist/$STARTPATH +/opt/nutstore/bin/nutstore-pydaemon.py diff --git a/nutstore.install b/nutstore.install deleted file mode 100644 index 5f155fb39894..000000000000 --- a/nutstore.install +++ /dev/null @@ -1,21 +0,0 @@ -post_install() -{ - update-desktop-database -q - gtk-update-icon-cache -q -t -f usr/share/icons/hicolor - cat <<EOF - -==> To make the option "Auto Start Nutstore" in Preferences work, type below command manually in a terminal after installation. -$ install -D /opt/nutstore/gnome-config/autostart/nutstore-daemon.desktop ~/.nutstore/dist/gnome-config/autostart/nutstore-daemon.desktop - -EOF -} - -post_upgrade() -{ - post_install -} - -post_remove() -{ - post_install -} |