summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9fad59c700260580b4831e405341d70ad6e5296d (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
# Maintainer: Evgeniy Alekseev <arcanis at archlinux dot org>
# Contributor: prettyvanilla <prettyvanilla at posteo dot at>
# Contributor: Dany Martineau <dany.luc.martineau at gmail dot com>

pkgname=klook-git
_pkgname="klook"
pkgver=v2.0_10_5_gf01e033
pkgrel=1
pkgdesc="A quick file content preview application that supports integration with Dolphin"
arch=('i686' 'x86_64')
url="https://github.com/KDE/klook.git"
license=('GPL')
depends=('kdebase-runtime')
makedepends=('automoc4' 'cmake' 'git')
install="${pkgname}.install"
source=("git+https://github.com/KDE/${_pkgname}.git")
md5sums=('SKIP')

pkgver() {
  cd "${_pkgname}"
  echo $(git describe --tags | sed 's/-/_/g')
}

build() {
  cd "${_pkgname}"
  cmake -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=/usr
  make
}

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