desktop/attica-qt5/PKGBUILD

47 lines
977 B
Bash
Raw Normal View History

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