summaryrefslogtreecommitdiff
path: root/repo/qt5-qtgraphicaleffects/qt5-qtgraphicaleffects.xibuild
blob: 8fc7036f08563f295cb1fb58aa02b513700463cf (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
#!/bin/sh

NAME="qt5-qtgraphicaleffects"
DESC="Qt5 - QtGraphicalEffects component"

MAKEDEPS=" qt5-qtbase qt5-qtdeclarative"

PKG_VER=5.15.3_git20201105
_commit="c36998dc1581167b12cc3de8e4ac68c2a5d9f76e"
SOURCE="https://invent.kde.org/qt/qt/qtgraphicaleffects/-/archive/$_commit/qtgraphicaleffects-$_commit.tar.gz"

prepare() {
	mkdir .git
}

build() {
	qmake-qt5
	make
}

check() {
	make check
}

package() {
	make install INSTALL_ROOT="$PKG_DEST"

	# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
	find "$PKG_DEST/usr/lib" -type f -name '*.prl' \
		-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;

	install -d "$PKG_DEST"/usr/share/licenses
	ln -s /usr/share/licenses/qt5-base "$PKG_DEST"/usr/share/licenses/qt5-qtgraphicaleffects
}