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

pkgname=kfilemetadata-git
pkgver=r255.c2f7249
pkgrel=1
pkgdesc="A library for extracting file metadata"
arch=(i686 x86_64)
url='https://projects.kde.org/projects/kde/kdelibs/kfilemetadata'
license=(LGPL)
depends=(ki18n-git karchive-git exiv2 poppler-qt5 taglib ffmpeg ebook-tools)
makedepends=(extra-cmake-modules-git git)
provides=(kfilemetadata)
conflicts=(kfilemetadata)
groups=(kf5)
source=('git://anongit.kde.org/kfilemetadata.git')
md5sums=('SKIP')

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

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../kfilemetadata \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
    -DLIB_INSTALL_DIR=lib
  make
}

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