blob: 77a01fb748f7c33a1801124f14092298eead079d (
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
|
# Maintainer: Donald Carr <sirspudd@gmail.com>
#set -e
_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"
makedepends=("qt-sdk-raspberry-pi${_piver}")
depends=("qt-sdk-raspberry-pi-target-libs")
fi
_pkgname="quint"
pkgname="${_pkgname}-git"
pkgver=0.0.1
pkgrel=1
pkgdesc="Live coding demo for the Raspberry Pi"
arch=("any")
url="https://github.com/sirspudd/quint"
source=("git://github.com/sirspudd/${_pkgname}.git")
sha256sums=("SKIP")
options=('!strip')
pkgver() {
cd ${srcdir}/${_pkgname}
git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
local repo_src=${srcdir}/${_pkgname}
cd ${repo_src}
$_qmake
make
}
package() {
local repo_src=${srcdir}/${_pkgname}
local deploy_path=${pkgdir}/opt/${_pkgname}
local systemd_deploy_path=${pkgdir}/usr/lib/systemd/system
mkdir -p $deploy_path
mkdir -p $systemd_deploy_path
cp ${repo_src}/${_pkgname} ${deploy_path}
cp ${startdir}/*.service ${systemd_deploy_path}
}
|