summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3198364a0a9a90f7bdf0a81f669a7be2c91377a2 (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
# Maintainer: Marco von Rosenberg <codingmarco@gmail.com>
# Contributor: Luca Weiss <luca (at) z3ntu (dot) xyz>
# Contributor: FadeMind <fademind@gmail.com>
# Contributor: Frikilinux <frikilinux at gmail.com>
# Contributor: Artem Sereda <overmind88@gmail.com>

pkgname=kde-thumbnailer-hpgl-git
pkgver=1.0.1.r0.gfc38f4d
pkgrel=1
pkgdesc='KDE / Dolphin thumbnails for HPGL (HP graphics language) files (git)'
arch=(i686 x86_64)
url=https://github.com/CodingMarco/kde-thumbnailer-hpgl
license=(GPL)
depends=(hp2xx kio5)
makedepends=(git cmake extra-cmake-modules)
provides=("kde-thumbnailer-hpgl=${pkgver}")
conflicts=(kde-thumbnailer-hpgl)
source=(git+https://github.com/CodingMarco/kde-thumbnailer-hpgl.git)
md5sums=('SKIP')

pkgver() {
    cd "${pkgname%-git}"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  mkdir -p "${pkgname%-git}/build"
  cd "${pkgname%-git}/build"
  cmake -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib ..
  make
}

package() {
  cd "${pkgname%-git}/build"
  make DESTDIR="$pkgdir" install
}