summaryrefslogtreecommitdiffstats
path: root/abs/extra/qtchooser/PKGBUILD
blob: a5339f0e36be65d972182e0d114cd2c751f4239a (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
# $Id$
# Maintainer: Andrea Scarpino <andrea@archlinux.org>

pkgname=qtchooser
pkgver=53
pkgrel=2
pkgdesc='Wrap the other Qt tools by searching for different instances of Qt on the system'
arch=('i686' 'x86_64')
url='http://code.qt.io/cgit/qt/qtchooser.git/'
license=('GPL')
backup=('etc/xdg/qtchooser/default.conf')
depends=('gcc-libs')
makedepends=('git')
source=("git://code.qt.io/qt/${pkgname}.git#commit=d20fdc63"
        {4,5}.conf)
md5sums=('SKIP'
         'aa4d49b269e1b806f5eea170801f0aa6'
         'cf83f09a9a5a44d898b93f624d74dd11')

pkgver() {
  cd $pkgname
  echo $(git rev-list --count HEAD)
}

build() {
  cd $pkgname
  make
}

package() {
  cd $pkgname
  make INSTALL_ROOT="$pkgdir" install

  install -d "$pkgdir"/etc/xdg/qtchooser
  install -m644 "$srcdir"/{4,5}.conf \
    "$pkgdir"/etc/xdg/qtchooser/

  # Set the default Qt
  ln -s /etc/xdg/qtchooser/5.conf \
    "$pkgdir"/etc/xdg/qtchooser/default.conf
}