#Packager: George Vlahavas pkgname=owncloud-client pkgver=2.4.1 pkgrel=1gv source=("https://download.owncloud.com/desktop/stable/owncloudclient-$pkgver.tar.xz" "owncloud.desktop") docs=("readme.md" "install" "copying*" "changelog" "authors" "news" "todo" "contributing.md") url=https://owncloud.org/ dotnew=('etc/ownCloud/sync-exclude.lst') doinst() { if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then if [ -x /usr/bin/gtk-update-icon-cache ]; then /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 fi fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "owncloud-client (ownCloud sync client)" "This package includes the official sync client that works with the" "ownCloud cloud server." ) build() { cd $startdir/src/owncloudclient-$pkgver mkdir -p build cd build cmake \ -DCMAKE_C_FLAGS="$CFLAGS" \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_DOCDIR=/usr/doc/$pkgname-$pkgver \ -DCMAKE_INSTALL_SYSCONFDIR=/etc/$pkgname \ -DCMAKE_BUILD_TYPE="Release" \ .. make VERBOSE=1 make install DESTDIR=$startdir/pkg cd .. mkdir -p $startdir/pkg/usr/share/applications cp $startdir/src/owncloud.desktop $startdir/pkg/usr/share/applications }