summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b8ab4a784902203df5e0b70886d0879648740df7 (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
# Maintainer: Donald Carr<sirspudd at gmail dot com>

# set -x

_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"
fi

# Uncomment for a debug build
#_qmake_args="CONFIG+=debug"
pkgname=artriculate
pkgver=0.4.r9.g0d98bbc
pkgrel=1
pkgdesc='QML box2d application for displaying artwork'
arch=('any')
url='https://github.com/sirspudd/artriculate'
license=('GPL3')
source=("git://github.com/sirspudd/artriculate")
sha256sums=('SKIP')
options=('!strip')

if [[ -n "$_piver" ]]; then
  depends=('qt-sdk-raspberry-pi-target-libs')
  makedepends=("qt-sdk-raspberry-pi${_piver}")
fi

prepare() {
  cd "$srcdir/$pkgname"

  git submodule init
  git submodule update
}

pkgver () {
  cd "$srcdir/$pkgname"

  git describe --tags --long | sed -r 's/^v//;s/-RC/RC/;s/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir"/"$pkgname"
  $_qmake
  make
}

package() {
  cd ${srcdir}/${pkgname}

  INSTALL_ROOT="$pkgdir" make install
}