aboutsummaryrefslogtreecommitdiffstats
path: root/testing/baloo/APKBUILD
blob: 3a82d121177c27be9554a701662b9ea697fc6684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Contributor: k0r10n <k0r10n.dev@gmail.com>
# Maintainer:
pkgname=baloo
pkgver=4.13.3
pkgrel=0
pkgdesc="A framework for searching and managing metadata"
url="https://projects.kde.org/projects/kde/kdelibs/baloo"
arch="all"
license="LGPL"
depends=
depends_dev="kdepimlibs-dev kfilemetadata-dev xapian-core-dev"
makedepends="$depends_dev automoc4 cmake"
install=""
subpackages="$pkgname-dev $pkgname-libs"
source="ftp://ftp.kde.org/pub/kde/stable/${pkgver}/src/${pkgname}-${pkgver}.tar.xz
	no-malloc-xapiandatabase-4.13.3.patch"

_builddir="$srcdir"/${pkgname}-${pkgver}
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	mkdir -p "$_builddir"/build
}

build() {
	cd "$_builddir"/build
	cmake -DCMAKE_INSTALL_PREFIX=/usr \
	      -DCMAKE_BUILD_TYPE=Release \
	      -Wno-dev "$_builddir" || return 1
	make || return 1
}

package() {
	cd "$_builddir"/build
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="00d818ad48d4ef618e86f5094ebebaa8  baloo-4.13.3.tar.xz
357fadd2779d8243d5c060583ae12aa4  no-malloc-xapiandatabase-4.13.3.patch"
sha256sums="c7467bf518dc23e319b581dbc1dff84cd8d0b03516a1d25bde0aa0cd7bbad043  baloo-4.13.3.tar.xz
4bded5e80c9e49dff0a8c2b767b63a39d46f380cb2ab99397d77f0557d236458  no-malloc-xapiandatabase-4.13.3.patch"
sha512sums="4f476ca4b1462b89c0f12da297cf629cf23bcd6aceb2c1d83caf45e89a55fb20d6effcbc4ed4c9b08c24877f899beb7aa462b2f15e0bb5aba719e613f768862d  baloo-4.13.3.tar.xz
b3b9f966acf72da52df378ee9885c3b5d66d6d7bd976fa3b7b1a0a19e69fdd7fa1a2261438e247c4a6dc8c125fb25b6d41e189b163d171d99b7bc283e4266c99  no-malloc-xapiandatabase-4.13.3.patch"