blob: ee7b8f5c4cbf5a3cef5ca64aad08d273266f07f5 (
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
|
# Maintainer: Felix Barz <skycoder42.de@gmx.de>
pkgbase=qt5-mvvm
pkgname=(qt5-mvvmcore qt5-mvvmwidgets qt5-mvvmquick qt5-mvvmdatasynccore qt5-mvvmdatasyncwidgets qt5-mvvmdatasyncquick qt5-mvvm-doc)
group=qt5-mvvm
pkgver=1.1.5
pkgrel=1
pkgdesc="A mvvm oriented library for Qt, to create Projects for Widgets and Quick in parallel"
arch=('i686' 'x86_64')
url="https://github.com/Skycoder42/QtMvvm"
license=('BSD')
depends=('qt5-base' 'qt5-svg')
makedepends=('qt5-tools' 'qt5-quickcontrols2' 'qt5-graphicaleffects' 'qt5-datasync' 'git' 'qdep' 'python' 'doxygen' 'graphviz')
optdepends=("repkg: Automatically rebuild the package on dependency updates")
_pkgfqn=$pkgbase-$pkgver
source=("$_pkgfqn::git+https://github.com/Skycoder42/QtMvvm.git#tag=${pkgver}"
"${pkgbase}core.rule"
"${pkgbase}widgets.rule"
"${pkgbase}quick.rule"
"${pkgbase}datasynccore.rule"
"${pkgbase}datasyncwidgets.rule"
"${pkgbase}datasyncquick.rule")
sha256sums=('SKIP'
'1b52eef5216017cfb4b399df1775950db544550a68a542053efe00eb8ef34911'
'c69a4d6f324019d30a6f3d5dac00760af670c8f14b5064e6f4c08072a34ab5b8'
'8eff388f59e28e1246c3f4aff71c5405c0098651d66a705fae73d67f76a80e4c'
'883fb2489da33b13827e5a44f6b56fddddcd18e9de96691db095ac5786a056c0'
'b974d9a7d88fcc9bde60ce6af3bac3c5f7374e07f635f8a90ef05e2791c99eae'
'8a6d5cc54a0eae285296c11de1e1ea02583cf8271ba87219c4fcfdcdf9907786')
prepare() {
mkdir -p build
cd "$_pkgfqn"
}
build() {
cd build
qmake "CONFIG+=no_auto_lupdate" "../$_pkgfqn/"
make
make doxygen
}
check() {
cd build
make run-tests
}
package_qt5-mvvmcore() {
cd build
cd src/mvvmcore
make INSTALL_ROOT="$pkgdir" install
cd ../imports/mvvmcore
make INSTALL_ROOT="$pkgdir" install
cd ../../../tools/settingsgenerator
make INSTALL_ROOT="$pkgdir" install
cd ../..
# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
find "$pkgdir/usr/lib" -type f -name '*.prl' \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
install -D -m644 "../$_pkgfqn/qbs/Qt/settingsgenerator/module.qbs" "$pkgdir/usr/share/qbs/modules/Qt/settingsgenerator/module.qbs"
install -D -m644 "../$_pkgfqn/LICENSE" "$pkgdir/usr/share/licenses/$pkgbase/LICENSE"
install -D -m644 "../${pkgname}.rule" "$pkgdir/etc/repkg/rules/system/${pkgname}.rule"
}
package_qt5-mvvmwidgets() {
depends=('qt5-mvvmcore')
optdepends=()
cd build
cd src/mvvmwidgets
make INSTALL_ROOT="$pkgdir" install
cd ../..
# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
find "$pkgdir/usr/lib" -type f -name '*.prl' \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
install -D -m644 "../${pkgname}.rule" "$pkgdir/etc/repkg/rules/system/${pkgname}.rule"
}
package_qt5-mvvmquick() {
depends=('qt5-mvvmcore' 'qt5-quickcontrols2' 'qt5-graphicaleffects')
optdepends=()
cd build
cd src/mvvmquick
make INSTALL_ROOT="$pkgdir" install
cd ../imports/mvvmquick
make INSTALL_ROOT="$pkgdir" install
cd ../../..
# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
find "$pkgdir/usr/lib" -type f -name '*.prl' \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
install -D -m644 "../${pkgname}.rule" "$pkgdir/etc/repkg/rules/system/${pkgname}.rule"
}
package_qt5-mvvmdatasynccore() {
depends=('qt5-mvvmcore' 'qt5-datasync')
optdepends=()
cd build
cd src/mvvmdatasynccore
make INSTALL_ROOT="$pkgdir" install
cd ../imports/mvvmdatasynccore
make INSTALL_ROOT="$pkgdir" install
cd ../../..
# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
find "$pkgdir/usr/lib" -type f -name '*.prl' \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
install -D -m644 "../${pkgname}.rule" "$pkgdir/etc/repkg/rules/system/${pkgname}.rule"
# Install mimetype
install -D -m644 "../$_pkgfqn/src/mvvmdatasynccore/application-x-datasync-account-data.xml" "$pkgdir/usr/share/mime/packages/application-x-datasync-account-data.xml"
}
package_qt5-mvvmdatasyncwidgets() {
depends=('qt5-mvvmdatasynccore' 'qt5-mvvmwidgets')
optdepends=()
cd build
cd src/mvvmdatasyncwidgets
make INSTALL_ROOT="$pkgdir" install
cd ../..
# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
find "$pkgdir/usr/lib" -type f -name '*.prl' \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
install -D -m644 "../${pkgname}.rule" "$pkgdir/etc/repkg/rules/system/${pkgname}.rule"
}
package_qt5-mvvmdatasyncquick() {
depends=('qt5-mvvmdatasynccore' 'qt5-mvvmquick')
optdepends=()
cd build
cd src/mvvmdatasyncquick
make INSTALL_ROOT="$pkgdir" install
cd ../imports/mvvmdatasyncquick
make INSTALL_ROOT="$pkgdir" install
cd ../../..
# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
find "$pkgdir/usr/lib" -type f -name '*.prl' \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
install -D -m644 "../${pkgname}.rule" "$pkgdir/etc/repkg/rules/system/${pkgname}.rule"
}
package_qt5-mvvm-doc() {
depends=('qt5-mvvmcore')
optdepends=()
cd build/doc
make INSTALL_ROOT="$pkgdir" install
install -Dm644 -t "$pkgdir/usr/share/man/man3" man/man3/*.3
cd "../../$_pkgfqn/ProjectTemplate"
find . -type f -exec install -D -m644 "{}" "$pkgdir/usr/share/qtcreator/templates/wizards/projects/qtmvvm/{}" \;
# DROP file paths from doc tags
find "$pkgdir/usr/share/doc/qt" -type f -name '*.tags' \
-exec sed -i -e 's:<path>[^<]*<\/path>:<path>/usr/include/qt/QtMvvm</path>:g' {} \;
}
|