desktop/baloo/PKGBUILD
2014-12-01 05:27:04 +00:00

86 lines
2.2 KiB
Bash

# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
# Contributors: Manuel Tortosa <manutortosa@chakra-project.org>
# Include global configuration
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
_pkgname=baloo
pkgbase=baloo4
pkgname=('baloo4' 'baloo4-akonadi' 'libbaloo4')
arch=('x86_64')
pkgver=${_kdever}
pkgrel=2
pkgdesc="The core baloo system"
url="http://www.kde.org"
license=('GPL'
'LGPL'
'FDL')
options=('docs'
'!header'
'debug'
'log')
depends=("kdelibs>=${_kdever}"
"kfilemetadata>=${pkgver}"
'kdepimlibs'
'xapian-core')
makedepends=('pkg-config'
'cmake'
'automoc4'
'doxygen')
optdepends=("nepomuk-core: To migrate nepomuk metadata to baloo")
source=($_mirror/${_pkgname}-$_kdever.tar.xz)
sha256sums=(`grep ${_pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d" " -f1`)
prepare() {
cd "${srcdir}/${_pkgname}-${pkgver}"
}
build() {
rm -rf build
mkdir -p build && cd build
cmake ../${_pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_INSTALL_PREFIX=${_installprefix}
make
}
package_baloo4() {
pkgdesc='A KDE4 framework for searching and managing metadata'
depends=('libbaloo4' 'baloo4-akonadi')
conflicts=('baloo<=4.14.3-1')
provides=('baloo_file')
install=${pkgname}.install
cd build
make DESTDIR="${pkgdir}" install
# Fix conflicts
rm -r "${pkgdir}"{/usr/bin/akonadi_baloo_indexer,/usr/include,/usr/lib,/usr/share/akonadi,/usr/share/kde4}
}
package_baloo4-akonadi() {
pkgdesc='Baloo resource for Akonadi'
depends=('libbaloo4')
conflicts=('baloo<=4.14.3-1')
cd build
make DESTDIR="${pkgdir}" install
# Fix conflicts
rm -r "${pkgdir}"{/etc,/usr/bin/baloo*,/usr/include,/usr/lib,/usr/share/{kde4,autostart,dbus-1,icons,polkit-1}}
}
package_libbaloo4() {
pkgdesc='Libraries for baloo4'
depends=('kdepimlibs' 'xapian-core' 'kfilemetadata' 'baloo_file')
conflicts=('baloo<=4.14.3-1')
replaces=('baloo<=4.14.3-1')
provides=("baloo=${pkgver}-${pkgrel}")
cd build
make DESTDIR="${pkgdir}" install
# Fix conflicts
rm -r "${pkgdir}"{/etc,/usr/bin,/usr/share/{akonadi,autostart,dbus-1,icons,polkit-1}}
}