blob: 710c24b9e2ec6f0cf8d0480c0d00d71ac614e087 (
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
|
# Maintainer: Donald Carr <d@chaos-reins dot com>
_qmake="qmake"
_piver=""
if [[ -z $_piver ]] && [[ -n $LOCAL_PI_VER ]]; then
_piver=$LOCAL_PI_VER
fi
if [[ -n "$_piver" ]]; then
_qmake="/opt/qt-sdk-raspberry-pi${_piver}/bin/qmake"
depends=('qt-sdk-raspberry-pi-target-libs')
makedepends=("qt-sdk-raspberry-pi${_piver}")
else
depends=(qt5-base)
makedepends=(git)
fi
_pkgname=qmlbench
pkgname=${_pkgname}-git
pkgver=r185.afbd34b
pkgrel=1
arch=('any')
pkgdesc='QML benchmarking tool'
url='https://github.com/CrimsonAS/qmlbench'
license=(GPL3)
provides=(qmlbench)
conflicts=(qmlbench)
source=("git+https://github.com/CrimsonAS/qmlbench.git")
sha256sums=('SKIP')
pkgver() {
cd ${_pkgname}
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd ${_pkgname}
${_qmake}
make
}
package() {
cd ${_pkgname}
temp_dir=$(mktemp -d)
target_path=${pkgdir}/opt/qmlbench
mkdir -p ${target_path}
INSTALL_ROOT="${temp_dir}" make install
mv ${temp_dir}/root/* ${target_path}
}
|