summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d6ef8fcb9edb4f508bb16e151710a1d8b0d44545 (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: Yichao Yu <yyc1992@gmail.com>

pkgname=qtcurve-git
_realver=1.8.18
pkgver=1.9.0.rc1.75.gbe78a85b
pkgrel=1
pkgdesc='A configurable set of widget styles for KDE and Gtk.'
arch=('i686' 'x86_64')
url="https://github.com/QtCurve/qtcurve"
license=('GPL')
groups=('qtcurve')
depends=('qt5-base' 'qt5-svg' 'libxcb' 'qt5-x11extras'
  'gtk2' 'libx11' 'gcc-libs' 'qt4' 'frameworkintegration')
makedepends=('cmake' 'git' 'extra-cmake-modules' 'kio' 'kconfig')
provides=(
  "qtcurve-utils=${_realver}"
  "qtcurve-gtk2=${_realver}"
  "qtcurve-kde4=${_realver}"
  "qtcurve-qt4=${_realver}"
  "qtcurve-qt5=${_realver}"
  "qtcurve-utils-git"
  "qtcurve-gtk2-git"
  "qtcurve-kde4-git"
  "qtcurve-qt4-git"
  "qtcurve-qt5-git")
conflicts=("qtcurve-kde4" "qtcurve-qt4"
  "qtcurve-qt5" "qtcurve-gtk2" "qtcurve-utils")
options=('!debug' 'strip')
source=("git+https://invent.kde.org/system/qtcurve.git")
_gitname=qtcurve

pkgver() {
  cd "$srcdir/$_gitname"

  git describe | sed -e 's/-/./g'
}

build() {
  cd "$srcdir/$_gitname"
  rm -rf build
  mkdir build
  cd build

  cmake .. \
    -DCMAKE_BUILD_TYPE=RelWithDebInfo \
    -DCMAKE_INSTALL_PREFIX=/usr 
  make
}

package() {
  cd "$srcdir/$_gitname/build"

  make DESTDIR="$pkgdir/" install
}
sha512sums=('SKIP')