# Maintainer: tinywrkb # Contributor: Nate Levesque # Contributor: Erik Dubois # Contributor: Vlad M. # Contributor: Zhengyu Xu pkgname=insync-headless pkgver=3.1.6.10648 pkgrel=1 pkgdesc="Google Drive and OneDrive headless client for servers" url="https://www.insynchq.com/downloads" license=('custom:insync') options=(!strip) depends=('glibc') arch=('x86_64') source=("http://s.insynchq.com/builds/${pkgname}_${pkgver}-buster_amd64.deb" 'insync-headless.service' 'insync-headless@.service' 'insync-headless.patch') sha256sums=('1173e5e5e2777f36d607f7b2610ab88cec3418c1f269ce9c6bbf83eec07825b3' '3812fee60e45e3227446328758cc4c690461b674c8fd27677ba985c635e6147d' 'e35c8274083a04adbbc96330958f18183e169348917c6e86e69e7d71ff644e4b' '67a54a59f0a7c747cb9ec8913b90a6bf1ed4e4b4c2ece2e2cd27d212546a93ed') package() { tar -xf data.tar.gz # insync conflict workaround mv usr/lib/insync usr/lib/insync-headless patch -Np1 -i insync-headless.patch rm -r usr/share/icons cp -r usr "${pkgdir}"/usr install -Dm644 -t "${pkgdir}"/usr/lib/systemd/system/ insync-headless@.service install -Dm644 -t "${pkgdir}"/usr/lib/systemd/user/ insync-headless.service }