summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJoão Figueiredo2021-02-01 23:19:50 +0000
committerJoão Figueiredo2021-02-01 23:19:50 +0000
commit288580e8297d3ea591cf779365f76808f885ade2 (patch)
tree5490e9ee3b52ec8744767b33add3304725da95a3 /PKGBUILD
parent82c909f575f3ddfe186f98ed7bda07a5d159fb0e (diff)
downloadaur-288580e8297d3ea591cf779365f76808f885ade2.tar.gz
Merged with official ABS kdeclarative PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD48
1 files changed, 21 insertions, 27 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e3fe937d0e0..8896e25067d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,41 +1,35 @@
-# Maintainer: João Figueiredo <jf dot mundox at gmail dot com>
+# Merged with official ABS kdeclarative PKGBUILD by João, 2021/02/01 (all respective contributors apply herein)
+# Maintainer: João Figueiredo <jf.mundox@gmail.com>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
pkgname=kdeclarative-git
-pkgver=v5.71.0.rc1.r2.g087286f
+pkgver=5.79.0_r859.gf9d627f
pkgrel=1
-pkgdesc='KDeclarative'
-arch=(i686 x86_64)
-url='https://projects.kde.org/projects/frameworks/kdeclarative'
-license=('LGPL')
-depends=('kpackage-git' 'kio-git' 'libepoxy')
-makedepends=('extra-cmake-modules-git' 'git' 'python')
-conflicts=('kdeclarative')
-provides=('kdeclarative')
-source=('git+https://github.com/KDE/kdeclarative.git')
-md5sums=('SKIP')
+pkgdesc='Provides integration of QML and KDE Frameworks'
+arch=($CARCH)
+url='https://community.kde.org/Frameworks'
+license=(LGPL)
+depends=(kio-git kpackage-git libepoxy)
+makedepends=(git extra-cmake-modules-git doxygen qt5-tools qt5-doc)
+conflicts=(${pkgname%-git})
+provides=(${pkgname%-git})
+groups=(kf5-git)
+source=("git+https://github.com/KDE/${pkgname%-git}.git")
+sha256sums=('SKIP')
pkgver() {
cd ${pkgname%-git}
- git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
-}
-
-prepare() {
- mkdir -p build
+ _ver="$(grep -m1 "set(KF5\?_VERSION" CMakeLists.txt | cut -d '"' -f2 | tr - .)"
+ echo "${_ver}_r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}
build() {
- cd build
- cmake ../kdeclarative \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DKDE_INSTALL_LIBDIR=lib \
- -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
- -DBUILD_TESTING=OFF
- make
+ cmake -B build -S ${pkgname%-git} \
+ -DBUILD_TESTING=OFF \
+ -DBUILD_QCH=ON
+ cmake --build build
}
package() {
- cd build
- make DESTDIR="$pkgdir" install
+ DESTDIR="$pkgdir" cmake --install build
}