blob: 1c177e01f52c9a98bbdb6babbd17dad7a8d4bb2f (
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
|
# Maintainer: degreeme <suratovvlad@gmail.com>
pkgname=libqdark-git
pkgver=0.5.6.r0.g76a940b
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
patch -d $srcdir/libqdark/src/QDarkStyleSheet_2.1 -p1 < $srcdir/libqdark/0002_QDarkStyleSheet_2_1_Change_naming.patch
}
build() {
echo ${pwd}
cd ${pkgname%-*}
qmake-qt5 libqdark.pro
make
}
package() {
cd ${pkgname%-*}
make INSTALL_ROOT="$pkgdir" install
}
|