PKGBUILDs/extra/kinfocenter/PKGBUILD

63 lines
1.9 KiB
Bash
Raw Normal View History

# $Id: PKGBUILD 224713 2014-10-18 08:27:20Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Antonio Rojas
# ALARM on armv6h: Arno Rehn <arno@arnorehn.de>
# - Disable the failing EGLonX parts (not available on the R-Pi). Needs better upstream support.
pkgname=kinfocenter
2015-01-27 13:03:56 +00:00
pkgver=5.2.0
2014-10-26 19:12:59 +00:00
pkgrel=1
pkgdesc='KInfocenter'
arch=('i686' 'x86_64')
url='https://projects.kde.org/projects/kde/workspace/kinfocenter'
license=('LGPL')
depends=('kdelibs4support' 'kcmutils' 'pciutils' 'glu' 'libraw1394' 'kwayland')
makedepends=('extra-cmake-modules' 'kdoctools' 'python' 'plasma-framework')
conflicts=('kdebase-workspace')
2015-01-27 13:03:56 +00:00
groups=('plasma')
2014-11-11 13:38:33 +00:00
source=("http://download.kde.org/stable/plasma/${pkgver}/$pkgname-$pkgver.tar.xz"
"kinfocenter_disable_eglonx.patch")
2015-01-27 13:03:56 +00:00
md5sums=('45a9b78c78fd8a53018a28043b8b9634'
'a43a82b8be9aea5a4666b6372eecc7d2')
prepare() {
2015-01-27 13:03:56 +00:00
mkdir build
2014-11-11 13:38:33 +00:00
cd "${pkgname}-${pkgver}"
2014-12-21 15:02:40 +00:00
# # Raspberry Pi
# if [ "$CARCH" == 'armv6h' ]; then
# patch -p1 -i "${srcdir}/kinfocenter_disable_eglonx.patch"
# fi
}
build() {
2014-12-21 15:02:40 +00:00
# # 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:38:33 +00:00
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_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
}