summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e582b58c2eda2bdaa6016ffbfc3b6981797b5c0b (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#
# PKGBUILD for qtcbm
#
# Contributor: Uffe Jakobsen <microtop@starion.dk>
# Contributor: Jochen Jägers <jochen.jaegers@gmail.com>
# Maintainer: Jochen Jägers <jochen.jaegers@gmail.com>
#
pkgname=qtcbm
pkgver=1.1.0
pkgrel=1
epoch=
pkgdesc="Qt GUI Frontend for the (Open)CBM utils"
arch=('i686' 'x86_64')
_pkgname=QtCBM
_pkgver=1.1.0
url="https://github.com/mveinot/QtCBM"
license=('GPLv2')
groups=()
depends=('qt5-base' 'opencbm-git')
makedepends=('imagemagick')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+https://github.com/mveinot/QtCBM.git"
         "git+https://github.com/qtproject/qt-solutions.git")
noextract=()

md5sums=('SKIP'
         'SKIP')


prepare() {
  cd "$srcdir/${_pkgname}"
  patch -p1 < ../../0001-add-missing-include.patch
}

build() {
  cd "${srcdir}/${_pkgname}"
  make -C diskimage -f Makefile.unix
  qmake
  make

  # convert ico to png
  convert QtCBM.ico qtcbm.png
}

check() {
  cd "${srcdir}/${_pkgname}"
  make -k check
}

package() {
  cd "${srcdir}/${_pkgname}"
  make DESTDIR="${pkgdir}/" install
  install -Dm0755 ${_pkgname} "$pkgdir/usr/bin/qtcbm"
  install -Dm0755 qtcbm-1.png "$pkgdir/usr/share/pixmaps/qtcbm.png"
  install -Dm0755 ../../qtcbm.desktop "$pkgdir/usr/share/applications/qtcbm.desktop"
}

# EOF