summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 18064030b2b467ffbc083c3ed6d16d1c2306d9fe (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
# Contributor: Andrea Scarpino <andrea@archlinux.org>

pkgname=baloo-widgets-git
pkgver=r410.331c859
pkgrel=1
pkgdesc="A framework for searching and managing metadata"
arch=(i686 x86_64)
url='https://projects.kde.org/projects/kde/kdelibs/baloo'
license=(LGPL)
depends=(baloo)
makedepends=(extra-cmake-modules git kdoctools)
source=('git://anongit.kde.org/baloo-widgets')
provides=(baloo-widgets)
conflicts=(baloo-widgets)
md5sums=('SKIP')

pkgver() {
  cd baloo-widgets
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../baloo-widgets \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DLIB_INSTALL_DIR=lib
  make
}

package() {
  cd build
  make DESTDIR="$pkgdir" install
}