summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f24ebdd53366a8a64eb6beffacc3f6a64116a078 (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
# Maintainer: degreeme <suratovvlad@gmail.com>

pkgname=libqdark-git
pkgver=0.5.3.r0.g514bf60
pkgrel=1
pkgdesc="Plugin for Qt applications. Choose the dark side of the style."
arch=('i686' 'x86_64')
url="http://github.com/suratovvlad/libqdark"
license=('MIT')
depends=('qt5-base')
makedepends=('qt5-tools')
source=("${pkgname%-*}::git+https://github.com/suratovvlad/libqdark.git")
sha512sums=('SKIP')

pkgver() {
  cd ${pkgname%-*}
  git describe --long --tags | sed 's/^FOO-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
    cd ${pkgname%-*}
    git submodule update --init
    patch -d $srcdir/libqdark/src/QDarkStyleSheet -p1 < $srcdir/libqdark/0001_fix_class_names.patch
}

build() {
    echo ${pwd}
    cd ${pkgname%-*}
    qmake-qt5 libqdark.pro
    make
}

package() {
    cd ${pkgname%-*}
    make INSTALL_ROOT="$pkgdir" install
}