diff options
author | Bhoppi Chaw | 2018-12-19 13:25:00 +0800 |
---|---|---|
committer | Bhoppi Chaw | 2018-12-19 13:25:00 +0800 |
commit | 0481e865bc7d3f586b47229f47c20136585fa3ff (patch) | |
tree | 3cb374019c086f18ce0b2362ac3f7b530f71d136 | |
parent | 4cb92defcc8add10b5f35f20fe05c0c3c2918f47 (diff) | |
download | aur-0481e865bc7d3f586b47229f47c20136585fa3ff.tar.gz |
fix 4.1.5 logdir bug
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 11 | ||||
-rw-r--r-- | nutstore-pydaemon.py-4.1.5.patch | 15 |
3 files changed, 25 insertions, 5 deletions
@@ -1,7 +1,7 @@ pkgbase = nutstore pkgdesc = a cloud service that lets you sync and share files anywhere. pkgver = 4.1.5 - pkgrel = 1 + pkgrel = 2 url = https://www.jianguoyun.com/ arch = x86_64 license = custom @@ -11,8 +11,10 @@ pkgbase = nutstore optdepends = nautilus-nutstore: Nautilus plugin source = nutstore source = license + source = nutstore-pydaemon.py-4.1.5.patch sha256sums = 3091740b20ddd31ba4407b8daba1077c4677040cdc47bccfab2f7f3947676384 sha256sums = f3d2861ff48f2d193a4eced23a02b4eba9fab4c1d3f727e934ed7c59f38f0f7e + sha256sums = 19d680f53f56931609a0943aa6356696419d62297ae57da263363c4a875d2312 source_x86_64 = https://www.jianguoyun.com/static/exe/st/4.1.5/nutstore_client-4.1.5-linux-x64-public.tar.gz sha256sums_x86_64 = 9d41854c2d654085c2004b5da738c3ba9152d5de8c15a9fb9d1df8efd2e021a3 @@ -2,21 +2,24 @@ pkgname=nutstore pkgver=4.1.5 -pkgrel=1 +pkgrel=2 pkgdesc='a cloud service that lets you sync and share files anywhere.' arch=(x86_64) url='https://www.jianguoyun.com/' license=(custom) depends=(libappindicator-gtk3 libnotify python-gobject) optdepends=('nautilus-nutstore: Nautilus plugin') -source=(nutstore license) +source=(nutstore license nutstore-pydaemon.py-4.1.5.patch) source_x86_64=("https://www.jianguoyun.com/static/exe/st/$pkgver/nutstore_client-$pkgver-linux-x64-public.tar.gz") #source_i686=("https://www.jianguoyun.com/static/exe/st/$pkgver/nutstore_client-$pkgver-linux-x86-public.tar.gz") sha256sums=('3091740b20ddd31ba4407b8daba1077c4677040cdc47bccfab2f7f3947676384' - 'f3d2861ff48f2d193a4eced23a02b4eba9fab4c1d3f727e934ed7c59f38f0f7e') + 'f3d2861ff48f2d193a4eced23a02b4eba9fab4c1d3f727e934ed7c59f38f0f7e' + '19d680f53f56931609a0943aa6356696419d62297ae57da263363c4a875d2312') sha256sums_x86_64=('9d41854c2d654085c2004b5da738c3ba9152d5de8c15a9fb9d1df8efd2e021a3') build() { + cd $srcdir + patch bin/nutstore-pydaemon.py nutstore-pydaemon.py-4.1.5.patch 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 @@ -28,7 +31,7 @@ package() { cd $srcdir install -D -m755 nutstore $pkgdir/usr/bin/nutstore install -D -m644 license $pkgdir/usr/share/licenses/$pkgname/license - rm nutstore license *.tar.gz + rm nutstore license *.patch *.tar.gz mkdir -p $pkgdir/opt/$pkgname && cp -aR ./ $pkgdir/opt/$pkgname 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-pydaemon.py-4.1.5.patch b/nutstore-pydaemon.py-4.1.5.patch new file mode 100644 index 000000000000..3dd76de6507e --- /dev/null +++ b/nutstore-pydaemon.py-4.1.5.patch @@ -0,0 +1,15 @@ +@@ -32,3 +32,3 @@ + def get_nutstore_dir(): +- dist = get_dist_dir() ++ dist = os.getenv('HOME') + '/.nutstore/dist' + if os.path.basename(dist) != "dist": +@@ -42,3 +42,3 @@ + if not os.path.exists(LOGDIR): +- os.mkdir(LOGDIR) ++ os.makedirs(LOGDIR, exist_ok=True) + # Don't try config logging with config file +@@ -54,4 +54,2 @@ + logging.basicConfig( +- filename=LOGFILE, +- filemode='a', + datefmt="%m/%d/%Y %H:%M:%S", |