summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJoão Figueiredo2021-02-02 19:15:19 +0000
committerJoão Figueiredo2021-02-02 19:15:19 +0000
commit943a5f35dffb598e20649e2ca0e2da2d820b93d7 (patch)
treeb01dbf29ac79965f53fa04a3aeda82ff7a9cdb81 /PKGBUILD
parentee4e1e138d63c50aa0952d0968d7d9d09ff50e99 (diff)
downloadaur-943a5f35dffb598e20649e2ca0e2da2d820b93d7.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD48
1 files changed, 20 insertions, 28 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 00898a7ad58..44c4e54cd01 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,42 +1,34 @@
-# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
+# Merged with official ABS akonadi-search PKGBUILD by João, 2021/02/02 (all respective contributors apply herein)
+# Maintainer: João Figueiredo <jf.mundox@gmail.com>
+# Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
pkgname=akonadi-search-git
-pkgver=r490.007a017
+pkgver=5.16.40_r1044.gea0c103
pkgrel=1
-pkgdesc="Libraries and daemons to implement searching in Akonadi. (GIT version)"
-url='https://projects.kde.org/projects/playground/pim/akonadi-search'
-arch=(i686 x86_64)
+pkgdesc="Libraries and daemons to implement searching in Akonadi"
+url='https://kontact.kde.org'
+arch=($CARCH)
license=(GPL LGPL FDL)
-depends=(xapian-core kdepimlibs-git)
-makedepends=(extra-cmake-modules kdoctools git)
-provides=(akonadi-search)
-conflicts=(akonadi-search)
-source=("git://anongit.kde.org/akonadi-search")
-sha1sums=('SKIP')
-_gitname=akonadi-search
+depends=(xapian-core akonadi-mime-git kcontacts-git kcalendarcore-git krunner-git)
+makedepends=(git extra-cmake-modules-git boost)
+conflicts=(${pkgname%-git})
+provides=(${pkgname%-git})
+groups=(kdepim-git)
+source=("git+https://github.com/KDE/${pkgname%-git}.git")
+sha256sums=('SKIP')
pkgver() {
- cd "${_gitname}"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
-}
-
-prepare() {
- rm -fr build
- mkdir -p build
+ cd ${pkgname%-git}
+ _ver="$(grep -m1 'set(PIM_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 "../${_gitname}" \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release \
- -DLIB_INSTALL_DIR=lib \
- -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
+ cmake -B build -S ${pkgname%-git} \
-DBUILD_TESTING=OFF
- make
+ cmake --build build
}
package() {
- make -C build DESTDIR=${pkgdir} install
+ DESTDIR="$pkgdir" cmake --install build
}
-