diff options
author | nl6720 | 2019-06-28 18:28:16 +0300 |
---|---|---|
committer | nl6720 | 2019-06-28 18:30:09 +0300 |
commit | 02cebc86e82bdff6de210b9b032f9a07b6d0ed12 (patch) | |
tree | fe01a3180118ee6b329f2be3899dd89de80efb5a /PKGBUILD | |
parent | 03bf2d290449949fb821e04bfc4acf091d050c63 (diff) | |
download | aur-02cebc86e82bdff6de210b9b032f9a07b6d0ed12.tar.gz |
akonadi-git 19.04.2.r97.g7f39ff12d-1
Update PKGBUILD based on official package
https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/akonadi
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 81 |
1 files changed, 49 insertions, 32 deletions
@@ -1,46 +1,63 @@ -# Maintainer: Jack Random <jack (@) random.to> -# Contributor: Antonio Rojas <arojas@archlinux.org +# Maintainer: nl6720 <nl6720@gmail.com> +# Contributor: Jack Random <jack (@) random.to> # Contributor: Jerome Leclanche <jerome.leclanche+arch@gmail.com> +# Contributor: Felix Yan <felixonmars@archlinux.org> +# Contributor: Antonio Rojas <arojas@archlinux.org +# Contributor: Andrea Scarpino <andrea@archlinux.org> +# Contributor: Pierre Schmitz <pierre@archlinux.de> -_gitname=akonadi -pkgname=$_gitname-git -pkgver=r10508.26d0626 +pkgbase=akonadi-git +pkgname=(akonadi-git libakonadi-git) +pkgver=19.04.2.r97.g7f39ff12d pkgrel=1 -pkgdesc="PIM layer, which provides an asynchronous API to access all kind of PIM data. builds with PostgreSQL backend" -arch=('i686' 'x86_64') -url="https://community.kde.org/KDE_PIM/akonadi" -license=('LGPL') -depends=('qt5-base' 'shared-mime-info' 'libxslt' 'postgresql' 'kdesignerplugin') -makedepends=('git' 'extra-cmake-modules' 'postgresql') -optdepends=('mariadb: MariaDB backend') -conflicts=("$_gitname") -provides=("$_gitname" 'akonadi-client') -source=("git+https://github.com/KDE/$_gitname") -install=$pkgname.install -sha256sums=("SKIP") +pkgdesc="PIM layer, which provides an asynchronous API to access all kind of PIM data" +arch=(x86_64) +url='https://kontact.kde.org' +license=(LGPL) +makedepends=(git extra-cmake-modules mariadb postgresql qt5-tools boost kdesignerplugin kio kitemmodels) +source=("git+https://anongit.kde.org/akonadi.git") +sha256sums=('SKIP') +validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid <aacid@kde.org> + F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87) # Christoph Feck <cfeck@kde.org> pkgver() { - cd $_gitname - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + cd "${pkgname%-git}" + git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + } prepare() { - mkdir -p build + mkdir -p build } build() { - cd build - cmake ../$_gitname \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib \ - -DBUILD_TESTING=OFF \ - -DDATABASE_BACKEND=POSTGRES \ - -DKDE_INSTALL_USE_QT_SYS_PATHS=ON - make + cd build + cmake ../"${pkgname%-git}" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + make } -package() { - cd build - make DESTDIR="$pkgdir" install +package_libakonadi-git() { + pkgdesc='Libraries used by applications based on Akonadi' + depends=(kio kitemmodels hicolor-icon-theme) + conflicts=("${pkgname%-git}") + provides=("${pkgname%-git}=${pkgver}") + + cd build + make DESTDIR="$pkgdir" install + rm -r "$pkgdir"/usr/bin # Provided by akonadi +} + +package_akonadi-git() { + depends=(libakonadi) + optdepends=('mariadb: MariaDB backend') + optdepends=('postgresql: PostgreSQL backend') + conflicts=("${pkgname%-git}") + provides=("${pkgname%-git}=${pkgver}") + + cd build + make DESTDIR="$pkgdir" install + rm -r "$pkgdir"/{etc,usr/{include,lib,share}} # Provided by libakonadi } |