summaryrefslogtreecommitdiff
path: root/extra/automoc4/PKGBUILD
blob: 903090736dd3357df3bed6b4a48467f66efd0c96 (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
# $Id: PKGBUILD 178949 2013-03-01 10:19:23Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Pierre Schmitz <pierre@archlinux.de>

pkgname=automoc4
pkgver=0.9.88
pkgrel=4
pkgdesc="Automatic moc for Qt4"
arch=('i686' 'x86_64')
url='http://www.kde.org/'
license=('custom')
depends=('qt4')
makedepends=('pkgconfig' 'cmake')
source=("http://download.kde.org/stable/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.bz2"
        'license.txt')
md5sums=('91bf517cb940109180ecd07bc90c69ec'
         '9014edbb7e2f02fe90b2db8707487bce')

build() {
    . /etc/profile.d/qt4.sh

	mkdir build
	cd build
	cmake ../${pkgname}-${pkgver} \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr
	make
}

package() {
    cd build
	make DESTDIR="${pkgdir}" install

    install -Dm644 "${srcdir}/license.txt" \
      "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}