blob: f0be72497f17498fc8b6cf585a537cd86bf13704 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# Maintainer: Juraj Fiala <doctorjellyface at riseup dot net>
pkgbase=adwaita-qt
pkgname=(
"${pkgbase}5"
"${pkgbase}4"
"$pkgbase-common"
)
pkgver=0.4
pkgrel=3
pkgdesc='A style to bend Qt applications to look like they belong into GNOME Shell.'
arch=('any' 'i686' 'x86_64')
url="https://github.com/MartinBriza/$pkgbase"
license=('GPL' 'LGPL')
groups=('adwaita-qt')
makedepends=(
'cmake'
'qt4'
'qt5-base'
)
source=("https://github.com/MartinBriza/$pkgbase/archive/$pkgver.tar.gz")
sha256sums=('48ccf17088afb77e98fe409f4dc6fdccd035bbdbcb51f0c2f0da00ef204daba0')
prepare() {
mkdir -p $pkgbase-$pkgver/build{-qt5,-qt4,-common}
}
build() {
cd $pkgbase-$pkgver
pushd build-qt4
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DUSE_QT4=ON
popd
pushd build-qt5
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DQT_ROOT=/usr/lib/qt
popd
pushd build-common
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
popd
# We don't want to install assets just yet
sed -ie '/(assets)/s/^/#/' CMakeLists.txt
make -C build-qt4
make -C build-qt5
# Now we want the assets but we don't want anything else
sed -ie '/(assets)/s/^#//' CMakeLists.txt
sed -ie '/(src)/s/^/#/' CMakeLists.txt
make -C build-common
# Clean up
sed -ie '/(src)/s/^#//' CMakeLists.txt
}
package_adwaita-qt4() {
arch=('i686' 'x86_64')
depends=('adwaita-qt-common' 'qt4')
cd $pkgbase-$pkgver
make install/fast DESTDIR=$pkgdir -C build-qt4
install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" README.md
}
package_adwaita-qt5() {
arch=('i686' 'x86_64')
depends=('adwaita-qt-common' 'qt5-base')
optdepends=('adwaita-qt4: Qt4 version')
cd $pkgbase-$pkgver
make install/fast DESTDIR=$pkgdir -C build-qt5
install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" README.md
}
package_adwaita-qt-common() {
arch=('any')
license=('GPL')
make install/fast DESTDIR=$pkgdir -C $pkgbase-$pkgver/build-common
}
|