PKGBUILDs/extra/kwin/PKGBUILD

71 lines
2.3 KiB
Bash
Raw Normal View History

# $Id: PKGBUILD 224438 2014-10-15 16:56:29Z andrea $
2015-03-01 16:08:18 +00:00
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# ALARM on armv6h: Arno Rehn <arno@arnorehn.de>
# - Find Broadcom's VideoCore GLES and EGL libraries instead of mesa's libs.
# - Remove forced compilation of the EGLonX part (not available on the r-pi)
# - Fix general compilation errors.
# - Proper upstream patches for the above are pending.
pkgname=kwin
2015-05-03 20:14:13 +00:00
pkgver=5.3.0
2015-03-01 16:08:18 +00:00
pkgrel=1
pkgdesc='KDE Window manager'
arch=('i686' 'x86_64')
url='https://projects.kde.org/projects/kde/workspace/kwin'
license=('LGPL')
2015-05-03 20:14:13 +00:00
depends=('qt5-multimedia' 'plasma-framework' 'knewstuff' 'xcb-util-cursor' 'kinit'
2015-03-24 22:01:27 +00:00
'hicolor-icon-theme' 'kwayland' 'libinput' 'kdecoration')
makedepends=('extra-cmake-modules' 'qt5-tools' 'kdoctools')
groups=('plasma-next')
install=${pkgname}.install
conflicts=('kdebase-workspace')
2015-03-24 22:01:27 +00:00
source=("http://download.kde.org/stable/plasma/${pkgver}/${pkgname}-${pkgver}.tar.xz"
"rpi_fix_build.patch"
"kwin_remove_eglonxbackend.patch")
2015-05-03 20:14:13 +00:00
md5sums=('4cce33510b72d1f4321e529fd00bf7d4'
2015-03-01 23:03:31 +00:00
'65af20bd49436056c93932ad7f80f7dd'
2015-05-04 00:03:21 +00:00
'7bfedcb642b0d6b517cc9e639c9b9c16')
prepare() {
2015-01-27 13:02:48 +00:00
mkdir build
# Raspberry Pi
if [ "$CARCH" == 'armv6h' ]; then
2015-03-01 23:03:31 +00:00
cd ${pkgname}-${pkgver}
patch -p1 -i ../rpi_fix_build.patch
2015-05-04 00:59:54 +00:00
#patch -p1 -i ../kwin_remove_eglonxbackend.patch
fi
}
build() {
# Raspberry Pi
if [ "$CARCH" == 'armv6h' ]; then
VC_INCLUDE_DIR="/opt/vc/include;/opt/vc/include/interface/vcos/pthreads;/opt/vc/include/interface/vmcs_host/linux"
VC_EGL_LIB="/opt/vc/lib/libEGL.so"
VC_GLESv2_LIB="/opt/vc/lib/libGLESv2.so"
CMAKE_EXTRA_CONFIG_OPTIONS="-DOPENGLES_EGL_INCLUDE_DIR=$VC_INCLUDE_DIR \
-DOPENGLES_EGL_LIBRARY=$VC_EGL_LIB \
-DOPENGLES_INCLUDE_DIR=$VC_INCLUDE_DIR \
-DOPENGLES_LIBRARY=$VC_GLESv2_LIB"
fi
cd build
2014-11-11 13:37:29 +00:00
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_INSTALL_DIR=lib \
2014-10-26 19:12:33 +00:00
-DLIBEXEC_INSTALL_DIR=lib \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DBUILD_TESTING=OFF \
$CMAKE_EXTRA_CONFIG_OPTIONS
make
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}