summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 749cb26ebbab5a1f6c4a2e8e508339e0c86b6ed1 (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
# Contributor: Balló György <ballogyor+arch at gmail dot com>

pkgname=qt5-styleplugins-git
_pkgname=qtstyleplugins
pkgver=5.0.0.r7.5f2549b
pkgrel=1
pkgdesc="Additional style plugins for Qt5"
arch=('i686' 'x86_64')
url="http://code.qt.io/cgit/qt/qtstyleplugins.git"
license=('LGPL')
depends=('qt5-base')
makedepends=('git' 'gconf' 'gtk2')
optdepends=('gconf: for GTK style'
            'gtk2: for GTK style')
source=("$_pkgname::git+https://code.qt.io/qt/qtstyleplugins.git")
md5sums=('SKIP')

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

build() {
  cd "$_pkgname"
  qmake PREFIX=/usr LIBDIR=/usr/lib
  make
}

package() {
  cd "$_pkgname"
  make INSTALL_ROOT="$pkgdir" install
  rm -r "$pkgdir/usr/lib/cmake"
}