summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 16e77cfa8656e8434b5013f73f2d02037d49e8ff (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
# Maintainer: Yoann Laissus <yoann.laissus@gmail.com>

_pkgname=qtcreator-freebox-plugin
pkgname=${_pkgname}-git
pkgver=r16.75afac6
pkgrel=1
pkgdesc="QtCreator Freebox Plugin"
groups=('qt' 'qt5')
arch=('i686' 'x86_64')
url='https://github.com/fbx/freebox-qtcreator-plugin'
license=('LGPL')
depends=('qtcreator')
makedepends=('git' 'qtcreator-src')
# Prepare this package if ever there is a release of this tool
provides=('qtcreator-freebox-plugin')
conflicts=('qtcreator-freebox-plugin')
source=("$pkgname::git://github.com/fbx/freebox-qtcreator-plugin.git")
md5sums=('SKIP')

pkgver() {
    cd $pkgname
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd $pkgname
    QTC_SOURCE=/usr/src/qtcreator QTC_BUILD=build/usr qmake LIBS+="-L/usr/lib/qtcreator -L/usr/lib/qtcreator/plugins"
    make
}

package() {
    cd $pkgname
    cp -r build/* ${pkgdir}
}