Skip to content

Instantly share code, notes, and snippets.

@jficz
Last active March 20, 2018 12:08
Show Gist options
  • Save jficz/56c9fbe68720ee0de655040aa69eb44a to your computer and use it in GitHub Desktop.
Save jficz/56c9fbe68720ee0de655040aa69eb44a to your computer and use it in GitHub Desktop.
nextcloud-client PKGBUILD inspired by Alpine's APKBUILD
# Contributor: Jakub Fiser <kuba(_)ufiseru_cz>
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=nextcloud-client
pkgver=2.3.3
pkgrel=1
pkgdesc="Nextcloud Desktop Client"
url="https://github.com/nextcloud/client_theming"
arch=("any")
license=("GPL2")
makedepends=(cmake qt5-tools qt5-webkit qtkeychain)
source=("owncloud-client-$pkgver.tar.gz::https://github.com/owncloud/client/archive/v$pkgver.tar.gz"
"$pkgname-$pkgver.tar.gz::https://github.com/nextcloud/client_theming/archive/v$pkgver.tar.gz")
md5sums=('1abd66ee39098dcb026806c1dc3ab621'
'ad74d32b6c9f6da1b8e145fd586ad13e')
_builddir="client-$pkgver"
_realname="client_theming"
build() {
cd "$_builddir"
# mkdir _build.tmp && cd _build.tmp
cmake \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_SYSCONFDIR=/etc/$pkgname \
-DOEM_THEME_DIR="$srcdir/$_realname-$pkgver/nextcloudtheme"
make all
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment