summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 35f30c26e93f407283fd934388b4229f5322f3e2 (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
# Maintainer: Christian Bühler <christian@cbuehler.de>

pkgname=qt-solutions-git
pkgver=55.2fb541e
pkgrel=1
pkgdesc="Components from the discontinued Qt Solutions product, a collection of minor Qt add-ons and former Qt modules which for various reasons have been pruned from Qt itself. (GIT version)"
arch=('x86_64')
url='https://github.com/qtproject/qt-solutions'
license=('LGPL')
depends=('qt5-base')
makedepends=('git')
provides=('qt-solutions')
conflicts=('qt-solutions')
source=('git+https://code.qt.io/qt-solutions/qt-solutions.git')
sha256sums=('SKIP')

pkgver() {
  cd qt-solutions
  echo "$(git rev-list --count master).$(git rev-parse --short master)"
}

prepare() {
  sed "s|\$\$DESTDIR|${pkgdir}/usr/lib|g" \
    -i qt-solutions/{qtservice,qtsingleapplication}/buildlib/buildlib.pro
}

build() {
  cd "${srcdir}/qt-solutions/qtservice"
  ./configure \
    -library
  qmake-qt5
  make

  cd "${srcdir}/qt-solutions/qtsingleapplication"
  ./configure \
    -library
  qmake-qt5
  make
}

package() {
  cd "${srcdir}/qt-solutions/qtservice/src"
  for i in QtServiceBase QtServiceController qtservice.h; do
    install -Dm644 "${i}" "${pkgdir}/usr/include/${i}"
  done
  cd ..
  make install

  cd "${srcdir}/qt-solutions/qtsingleapplication/src"
  for i in QtSingleApplication qtsingleapplication.h; do
    install -Dm644 "${i}" "${pkgdir}/usr/include/${i}"
  done
  cd ..
  make install
}