2015-03-23 14:47:10 +08:00
|
|
|
#
|
|
|
|
# GLOBAL PACKAGE SETTINGS
|
|
|
|
#
|
|
|
|
# These settings will be sourced directly from the PKGBUILDS
|
|
|
|
|
|
|
|
# Architecture
|
|
|
|
_arch="x86_64"
|
|
|
|
|
|
|
|
# KDE settings
|
2016-11-13 22:33:47 +08:00
|
|
|
_kdever="16.08.3"
|
2016-04-23 05:55:25 +08:00
|
|
|
_mirror="http://download.kde.org/stable/applications/${_kdever}/src"
|
2015-03-23 14:47:10 +08:00
|
|
|
_oldkdever="4.14.3"
|
|
|
|
_oldkdemirror="http://download.kde.org/stable/${_oldkdever}/src"
|
2015-08-15 16:32:44 +08:00
|
|
|
_workspace_ver="4.11.22"
|
2016-10-12 15:54:48 +08:00
|
|
|
_libsver="4.14.25"
|
2016-10-17 23:04:02 +08:00
|
|
|
_kdevver='5.0.2'
|
2015-03-23 14:47:10 +08:00
|
|
|
|
|
|
|
# Qt settings
|
2015-06-29 05:25:36 +08:00
|
|
|
_qtver="4.8.7"
|
2015-03-23 14:47:10 +08:00
|
|
|
_qtpkg="qt"
|
|
|
|
|
|
|
|
# Package name prefix
|
|
|
|
# FIXME: Can we get rid of this?
|
|
|
|
_pkgprefix="kde"
|
|
|
|
|
2015-04-10 09:47:12 +08:00
|
|
|
# Install prefix
|
|
|
|
_installprefix="/usr"
|
|
|
|
|
2015-04-10 09:50:36 +08:00
|
|
|
# Build type, one of the following:
|
|
|
|
# Release: Compile with no debugging information, optimization enabled
|
|
|
|
# Debug: Minimal optimization, with debugging information
|
|
|
|
# RelWithDebInfo: Normal optimization, with debugging information
|
|
|
|
# MinSizeRel: No debugging information, with optimization for smallest size
|
|
|
|
_build_type="RelWithDebInfo"
|
2015-04-10 09:47:12 +08:00
|
|
|
|
2015-04-04 03:04:46 +08:00
|
|
|
function cmake_kf5() {
|
2015-04-10 09:50:36 +08:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=${_build_type} \
|
2015-04-10 09:47:12 +08:00
|
|
|
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
|
2016-04-16 22:34:39 +08:00
|
|
|
-DKDE_INSTALL_LIBDIR=lib \
|
2016-04-17 22:41:30 +08:00
|
|
|
-DKDE_INSTALL_SYSCONFDIR=/etc \
|
|
|
|
-DKDE_INSTALL_LIBEXECDIR=lib \
|
2015-04-04 03:04:46 +08:00
|
|
|
-DBUILD_TESTING=OFF \
|
|
|
|
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON "$@"
|
|
|
|
}
|
|
|
|
|
2015-03-23 14:47:10 +08:00
|
|
|
# Working directory for this repository
|
|
|
|
_build_work="/chakra/desktop-testing/"
|
|
|
|
|
|
|
|
# Automatic installation of packages
|
|
|
|
#
|
|
|
|
# To make this work without entering your password, add the
|
|
|
|
# following entry to /etc/sudoers:
|
|
|
|
#
|
|
|
|
# $your_username all=nopasswd: /usr/bin/pacman
|
|
|
|
#
|
|
|
|
# Notice: You _must_ enable this if you want to build kde4
|
|
|
|
# on a system without any prior installation.
|
|
|
|
#
|
|
|
|
_build_autoinstall=1
|
|
|
|
|
|
|
|
# Automatic installation of dependencies
|
|
|
|
#
|
|
|
|
# To make this work without entering your password, add the
|
|
|
|
# following entry to /etc/sudoers:
|
|
|
|
#
|
|
|
|
# $your_username all=nopasswd: /usr/bin/pacman
|
|
|
|
#
|
|
|
|
# Notice: You _must_ enable this if you want to build kde4
|
|
|
|
# on a system without any prior installation.
|
|
|
|
#
|
|
|
|
_build_autodepends=1
|
|
|
|
|
|
|
|
# Behavior when a package fails to build
|
|
|
|
#
|
|
|
|
# Set to "1" if you want to stop the script(s) when
|
|
|
|
# a package fails to build.
|
|
|
|
#
|
|
|
|
_build_stop=1
|
|
|
|
|
|
|
|
# If you think you have configured everything,
|
|
|
|
# set this to 1 to remove the warning.
|
|
|
|
#
|
|
|
|
_build_configured=1
|