summaryrefslogtreecommitdiff
path: root/community/qdevelop/PKGBUILD
blob: 2a8ba9b2d000d7953940ca1ced8c1a1b697219cd (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: PKGBUILD 59469 2011-11-25 21:18:16Z andrea $
# Maintainer:
# Contributor: Brad Fanella <bradfanella@archlinux.us>
# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
# Contributor: Shaika-Dzari < shaikadzari at gmail dot com>

pkgname=qdevelop
pkgver=0.28
pkgrel=1
pkgdesc='A free and cross-platform IDE for Qt4'
arch=('i686' 'x86_64')
url="http://biord-software.org/${pkgname}"
license=('GPL2')
depends=('qt')
optdepends=('ctags: for code completion and class browser'
            'gdb: for debugging functionalities')
source=("http://biord-software.org/downloads/$pkgname-v$pkgver.tar.gz"
        'qt47.patch')
md5sums=('24e64bd80dd7407a885acd639b59a740'
         'dc14b87a849b71ae3ac476e49c7d87e9')

build() {
  	cd ${srcdir}/${pkgname}-v${pkgver}

    patch -p1 -i "${srcdir}"/qt47.patch
  	
	lrelease QDevelop.pro
  	qmake
  	make
}

package() {
	cd ${srcdir}/${pkgname}-v${pkgver}

	make INSTALL_ROOT="$pkgdir" install

    # Desktop
    install -Dm644 ${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
    install -Dm644 resources/images/logo.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png
}