summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 72a9b24370c2a732f6983416c659768a023f760f (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
# Maintainer: Martin Sandsmark <martin.sandsmark@kde.org>

pkgname=extra-imageformats-qt-git
pkgver=r11.fe4356c
pkgrel=1
pkgdesc='bpg, pgf and fuif support for Qt'
arch=('i686' 'x86_64')
url='https://github.com/sandsmark/extra-imageformats-qt'
license=('LGPL')
depends=('qt5-base')
optdepends=(
    'libbpg: BPG supprt'
    'libpgf: PGF support'
)
makedepends=('git' 'cmake')
conflicts=(extra-imageformats-qt)
provides=(extra-imageformats-qt)
source=('git://github.com/sandsmark/extra-imageformats-qt.git')
md5sums=('SKIP')

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

build() {
  cd extra-imageformats-qt
  cmake -DCMAKE_INSTALL_PREFIX=/usr .
  make
}

package() {
  cd extra-imageformats-qt
  make DESTDIR="$pkgdir" install
}