#!/bin/sh # Download and extract source from official github website if [ ! -f v$1.zip ]; then wget https://github.com/owncloud/client/archive/v$1.zip fi unzip v$1.zip # Build mkdir client-build cd client-build cmake -DWITH_DOC=TRUE -DCMAKE_BUILD_TYPE="Release" ../client-$1 make