desktop/attica-qt5/PKGBUILD
2014-08-10 15:05:41 +00:00

47 lines
977 B
Bash

# Contributor: Andrea Scarpino <andrea@archlinux.org>
source ../frameworks.conf
pkgname=attica-qt5
_pkgname=attica
pkgver=${KFVersion}
pkgrel=1
arch=('x86_64')
url='https://projects.kde.org/projects/kdesupport/${_pkgname}'
pkgdesc='A Qt5 library that implements the Open Collaboration Services API'
license=('LGPL')
depends=('qt5-base')
makedepends=('extra-cmake-modules')
checkdepends=("cmake")
options=("debug")
source=("${KFServer}/${pkgver}/${_pkgname}-${pkgver}.tar.xz")
replaces=("kf5-attica")
provides=("kf5-attica")
conflicts=("kf5-attica")
sha256sums=($(getSum $_pkgname))
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../${_pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=${KFBuildType} \
-DCMAKE_INSTALL_PREFIX=${KFInstallPrefix} \
-DQT4_BUILD=OFF \
-DECM_MKSPECS_INSTALL_DIR=/usr/lib/qt5/mkspecs/modules \
-DLIB_INSTALL_DIR=lib
make
}
check() {
cd build
make test
}
package() {
cd build
make DESTDIR="${pkgdir}" install
}