diff options
author | João Figueiredo | 2021-02-01 23:33:40 +0000 |
---|---|---|
committer | João Figueiredo | 2021-02-01 23:33:40 +0000 |
commit | 98a9550a61d3d785bdb3c811b040163621888bcb (patch) | |
tree | 411cfc0468b41ea2608baa1c90fe0c5fa4a18ac2 | |
parent | 896e10200bf3a8d93c4e480c88497ef09116fd5a (diff) | |
download | aur-98a9550a61d3d785bdb3c811b040163621888bcb.tar.gz |
Merged with official ABS ktextwidgets PKGBUILD
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 50 |
2 files changed, 33 insertions, 38 deletions
@@ -1,23 +1,24 @@ pkgbase = ktextwidgets-git - pkgdesc = KTextWidgets - pkgver = v4.100.0.rc1.r302.g8b89dcc - pkgrel = 2 - url = https://projects.kde.org/projects/frameworks/ktextwidgets - arch = i686 + pkgdesc = Advanced text editing widgets + pkgver = 5.79.0_r366.g2928501 + pkgrel = 1 + url = https://community.kde.org/Frameworks arch = x86_64 + groups = kf5-git license = LGPL - makedepends = extra-cmake-modules-git makedepends = git - makedepends = python + makedepends = extra-cmake-modules-git + makedepends = doxygen makedepends = qt5-tools + makedepends = qt5-doc depends = kcompletion-git - depends = kservice-git - depends = kiconthemes-git + depends = kconfigwidgets-git depends = sonnet-git + depends = qt5-speech provides = ktextwidgets conflicts = ktextwidgets source = git+https://github.com/KDE/ktextwidgets.git - md5sums = SKIP + sha256sums = SKIP pkgname = ktextwidgets-git @@ -1,41 +1,35 @@ -# Maintainer: João Figueiredo <jf dot mundox at gmail dot com> +# Merged with official ABS ktextwidgets 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=ktextwidgets-git -pkgver=v4.100.0.rc1.r302.g8b89dcc -pkgrel=2 -pkgdesc='KTextWidgets' -arch=('i686' 'x86_64') -url='https://projects.kde.org/projects/frameworks/ktextwidgets' -license=('LGPL') -depends=('kcompletion-git' 'kservice-git' 'kiconthemes-git' 'sonnet-git') -makedepends=('extra-cmake-modules-git' 'git' 'python' 'qt5-tools') -conflicts=(ktextwidgets) -provides=(ktextwidgets) -source=('git+https://github.com/KDE/ktextwidgets.git') -md5sums=('SKIP') +pkgver=5.79.0_r366.g2928501 +pkgrel=1 +pkgdesc='Advanced text editing widgets' +arch=($CARCH) +url='https://community.kde.org/Frameworks' +license=(LGPL) +depends=(kcompletion-git kconfigwidgets-git sonnet-git qt5-speech) +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 ../ktextwidgets \ - -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 } |