-
-
Save anonymous/b0733752f1f3f2e50fed55acd7d72eca to your computer and use it in GitHub Desktop.
PKGBUILD Nextcloud desktop client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Konstantin Shalygin <k0ste@k0ste.ru> | |
# Contributor: Konstantin Shalygin <k0ste@k0ste.ru> | |
_deb_date='20180226.145828' | |
pkgname='nextcloud-client' | |
pkgver='2.3.3' | |
pkgrel='2' | |
pkgdesc='Nextcloud desktop client' | |
arch=('i686' 'x86_64') | |
url='https://nextcloud.com/' | |
license=('GPL2') | |
#depends=('qt5-webkit' 'hicolor-icon-theme' 'xdg-utils' 'qtkeychain') | |
depends=('qt5-webkit' 'hicolor-icon-theme' 'qtkeychain') | |
#optdepends=('python2-nautilus: integration with Nautilus' | |
# 'nemo-python: integration with Nemo' | |
# 'kio: Resource and network access abstraction (KDE)' | |
# 'libgnome-keyring: GNOME keyring client') | |
optdepends=('libgnome-keyring: GNOME keyring client') | |
conflicts=('owncloud-client') # because of libocsync | |
source=("https://launchpad.net/~nextcloud-devs/+archive/ubuntu/client/+files/nextcloud-client-l10n_${pkgver}-${_deb_date}~artful1_all.deb") | |
source_i686=( | |
"https://launchpad.net/~nextcloud-devs/+archive/ubuntu/client/+files/nextcloud-client_${pkgver}-${_deb_date}~artful1_i386.deb" | |
"https://launchpad.net/~nextcloud-devs/+archive/ubuntu/client/+files/libnextcloudsync0_${pkgver}-${_deb_date}~artful1_i386.deb" | |
) | |
source_x86_64=( | |
"https://launchpad.net/~nextcloud-devs/+archive/ubuntu/client/+files/nextcloud-client_${pkgver}-${_deb_date}~artful1_amd64.deb" | |
"https://launchpad.net/~nextcloud-devs/+archive/ubuntu/client/+files/libnextcloudsync0_${pkgver}-${_deb_date}~artful1_amd64.deb" | |
) | |
noextract=("${source[@]##*/}" "${source_i386[@]##*/}" "${source_x86_64[@]##*/}") | |
sha256sums_i686=( | |
'61fb0fa0ac7cedbc7c1c1007819498bb2b1a376473431591d3e2ac308919ceb5' | |
'cea988e076d88b82adc30f3b03605c32fd0ee78544155e965a750294579c3483' | |
) | |
sha256sums=('6f6bf20d96eac09fee67861712fdd497ff7886bc677541657a0f466f24871d8f') | |
sha256sums_x86_64=( | |
'8df583a60a70b901dd3d727d31873f1760675370e76361e3127bf6c96f19633a' | |
'40617c128f26fb488cfcd304c49a23ade024605f3519548c3b9e2fc24479915f' | |
) | |
backup=('etc/Nextcloud/sync-exclude.lst') | |
prepare() { | |
if [ $CARCH == "x86_64" ]; then | |
debarch="amd64" | |
else | |
debarch="i386" | |
fi | |
cd "${srcdir}/" | |
ar p nextcloud-client-l10n_${pkgver}-${_deb_date}~artful1_all.deb data.tar.xz | tar xJ | |
ar p nextcloud-client_${pkgver}-${_deb_date}~artful1_${debarch}.deb data.tar.xz | tar xJ | |
ar p libnextcloudsync0_${pkgver}-${_deb_date}~artful1_${debarch}.deb data.tar.xz | tar xJ | |
} | |
package() { | |
if [ $CARCH == "x86_64" ]; then | |
debarch="x86_64" | |
else | |
debarch="i386" | |
fi | |
cd "${srcdir}/" | |
install -m 644 -D "etc/sysctl.d/101-sync-inotify.conf" \ | |
"${pkgdir}/etc/sysctl.d/101-sync-inotify.conf" | |
install -m 755 -D "usr/bin/nextcloud" "${pkgdir}/usr/bin/nextcloud" | |
install -m 755 "usr/bin/nextcloudcmd" "${pkgdir}/usr/bin/" | |
install -m 644 -D "usr/share/applications/nextcloud.desktop" \ | |
"${pkgdir}/usr/share/applications/nextcloud.desktop" | |
for file in usr/share/icons/hicolor/*/*/*; do | |
install -m 644 -D "${file}" "${pkgdir}/${file}" | |
done | |
install -m 644 -D "etc/Nextcloud/sync-exclude.lst" \ | |
"${pkgdir}/etc/Nextcloud/sync-exclude.lst" | |
install -m 644 -D "usr/lib/${debarch}-linux-gnu/libnextcloudsync.so.${pkgver}" \ | |
"${pkgdir}/usr/lib/libnextcloudsync.so.${pkgver}" | |
install -m 644 -D "usr/lib/${debarch}-linux-gnu/nextcloud/libocsync.so.${pkgver}" \ | |
"${pkgdir}/usr/lib/libocsync.so.${pkgver}" | |
cd "${pkgdir}/usr/lib" | |
ln -s libnextcloudsync.so.${pkgver} libnextcloudsync.so.0 | |
ln -s libocsync.so.${pkgver} libocsync.so.0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment