summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO7
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD15
-rw-r--r--insync.service4
-rw-r--r--insync@.service14
5 files changed, 32 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e52115dd2ef..320ca177278 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = insync
pkgdesc = An unofficial Google Drive client that runs on Linux, with support for various desktops
pkgver = 1.3.12
- pkgrel = 1
+ pkgrel = 2
url = https://www.insynchq.com/downloads
arch = i686
arch = x86_64
@@ -9,11 +9,12 @@ pkgbase = insync
depends = xdg-utils
depends = glibc
depends = python2
- optdepends = insync-nautilus: file-manager integration for nautilus
options = !strip
options = !upx
+ source = insync@.service
source = insync.service
- sha256sums = 995d9131bd454015ff11414d002b8927b7397835969e27061008264c0c5f225d
+ sha256sums = 67ffe1bc921dd18e2d0b12109da41b03430a29536f07ca6d464075145bd3f8c8
+ sha256sums = 7050fe46c1ddf2251a2826894c5a1d536ad56861d473abc1e66a5580fb9b0899
source_i686 = http://s.insynchq.com/builds/insync_1.3.12.36116-trusty_i386.deb
sha256sums_i686 = b0c27926de2fea42c07c92285cd96c2936e449cab37c38a354a81a94b5d9298e
source_x86_64 = http://s.insynchq.com/builds/insync_1.3.12.36116-trusty_amd64.deb
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..12ea8e77742
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+*.deb
+*.gz
+*.xz
diff --git a/PKGBUILD b/PKGBUILD
index 054895b0e30..4ed8a35181e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,21 +1,22 @@
-# Maintainer: Vlad M. <vlad@archlinux.net>
+# Maintainer: Nate Levesque <public@thenaterhood.com>
+# Contributor: Vlad M. <vlad@archlinux.net>
# Contributor: Zhengyu Xu <xzy3186@gmail.com>
pkgname=insync
pkgver=1.3.12
_pkgver=36116
-pkgrel=1
+pkgrel=2
pkgdesc="An unofficial Google Drive client that runs on Linux, with support for various desktops"
url="https://www.insynchq.com/downloads"
license=('custom:insync')
options=(!strip !upx)
depends=('xdg-utils' 'glibc' 'python2')
-optdepends=('insync-nautilus: file-manager integration for nautilus')
arch=('i686' 'x86_64')
-source=('insync.service')
+source=('insync@.service' 'insync.service')
source_i686=("http://s.insynchq.com/builds/${pkgname}_${pkgver}.${_pkgver}-trusty_i386.deb")
source_x86_64=("http://s.insynchq.com/builds/${pkgname}_${pkgver}.${_pkgver}-trusty_amd64.deb")
-sha256sums=('995d9131bd454015ff11414d002b8927b7397835969e27061008264c0c5f225d')
+sha256sums=('67ffe1bc921dd18e2d0b12109da41b03430a29536f07ca6d464075145bd3f8c8'
+ '7050fe46c1ddf2251a2826894c5a1d536ad56861d473abc1e66a5580fb9b0899')
sha256sums_i686=('b0c27926de2fea42c07c92285cd96c2936e449cab37c38a354a81a94b5d9298e')
sha256sums_x86_64=('750f1bfa381e1019b7320af24b43d800c95a737968ee15d4d174dd9f4ac6f5a2')
@@ -29,6 +30,8 @@ package() {
sed -i "s|usr/bin/python$|usr/bin/python2|g" $file
done
mkdir -p ${pkgdir}/usr/lib/systemd/system
- sed "s/_OPTION/ start/g" ${srcdir}/insync.service >${pkgdir}/usr/lib/systemd/system/insync@.service
+ mkdir -p ${pkgdir}/usr/lib/systemd/user
+ cp ${srcdir}/insync@.service ${pkgdir}/usr/lib/systemd/system/insync@.service
+ cp ${srcdir}/insync.service ${pkgdir}/usr/lib/systemd/user/insync.service
ln -sf "/usr/lib/libfontconfig.so.1" "${pkgdir}/usr/lib/insync/libfontconfig.so.1"
}
diff --git a/insync.service b/insync.service
index beaf8528a8f..f86004e413b 100644
--- a/insync.service
+++ b/insync.service
@@ -6,9 +6,9 @@ After=local-fs.target network.target
Environment=DISPLAY=:0
Type=oneshot
RemainAfterExit=yes
-ExecStart=/usr/bin/insync_OPTION
+ExecStart=/usr/bin/insync start
ExecStop=/usr/bin/insync quit
-User=%I
[Install]
WantedBy=multi-user.target
+
diff --git a/insync@.service b/insync@.service
new file mode 100644
index 00000000000..59681df9746
--- /dev/null
+++ b/insync@.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Insync
+After=local-fs.target network.target
+
+[Service]
+Environment=DISPLAY=:0
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/insync start
+ExecStop=/usr/bin/insync quit
+User=%I
+
+[Install]
+WantedBy=multi-user.target