Skip to content

Instantly share code, notes, and snippets.

@sanderboom
Created June 13, 2014 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sanderboom/6b141dc90978f7b2ddf4 to your computer and use it in GitHub Desktop.
Save sanderboom/6b141dc90978f7b2ddf4 to your computer and use it in GitHub Desktop.
Arch linux updated PKGBUILD for insync
# Maintainer: Zhengyu Xu <xzy3186@gmail.com>
pkgname=insync
pkgver=1.0.29
pkgrel=2
pkgdesc="An unofficial Google Drive client that runs on Linux, with support for various desktops"
url="https://support.insynchq.com/forums/discussion/2789/new-insync-version-1-0-29/p1"
license=('custom:insync')
options=(!strip)
depends=('xdg-utils' 'glibc' 'gobject-introspection')
optdepends=('insync-nautilus: file-manager integration for nautilus'
'insync-nemo: file-manager integration for nemo'
'insync-dolphin: file-manager integration for dolphin'
'insync-thunar: file-manager integration for thunar'
'insync-caja: file-manager integration for caja'
)
arch=('i686' 'x86_64')
if [ "$CARCH" = 'i686' ]; then
source=("${pkgname}-${pkgver}.deb::http://s.insynchq.com/builds/${pkgname}_${pkgver}.31750_i386.deb")
sha256sums=('8b6c93b55a9b0df6fa450cf45e8d351b353faa23ef160cc30dd936139cb35a37')
elif [ "$CARCH" = "x86_64" ]; then
source=("${pkgname}-${pkgver}.deb::http://s.insynchq.com/builds/${pkgname}_${pkgver}.31750_amd64.deb")
sha256sums=('9ce4b43c9920e7a6d4caaa521caf9d42eb3ea32e914a87107468c75b6f295cf8')
fi
noextract=("${pkgname}-${pkgver}.deb")
source=("${source[@]}"
"insync.service")
sha256sums=("${sha256sums[@]}"
"995d9131bd454015ff11414d002b8927b7397835969e27061008264c0c5f225d")
package() {
cd $srcdir
ar x ${pkgname}-${pkgver}.deb
tar xvf data.tar.gz
cp -rp usr $pkgdir
cd $pkgdir
for file in $(grep -R "/usr/bin/python" . | cut -f1 -d :)
do
sed -i "s|usr/bin/python$|usr/bin/python2|g" $file
done
mkdir -p ${pkgdir}/usr/lib/systemd/system
sed "s/_OPTION/ start --synchronous-full/g" ${srcdir}/insync.service >${pkgdir}/usr/lib/systemd/system/insync@.service
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment