blob: ece3a62e29dfb57e9eba9967f30d03d3aef64108 (
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
|
# $ Id: $
# Maintainer: Pierre Schmitz <pierre@archlinux.de>
pkgname=automoc4
pkgver=0.9.88
pkgrel=1
pkgdesc="KDE automoc4"
arch=('i686' 'x86_64')
url='http://www.kde.org'
license=('custom')
depends=('qt>=4.4')
makedepends=('pkgconfig' 'cmake')
source=("ftp://ftp.archlinux.org/other/automoc4/automoc4-${pkgver}.tar.bz2")
md5sums=('adffb45ea2b550f284b1e3455f525176')
build() {
cd ${srcdir}
mkdir build
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make || return 1
}
package() {
cd ${srcdir}/build
make DESTDIR=$pkgdir install || return 1
grep -A 21 '^ Copyright' ${srcdir}/${pkgname}-${pkgver}/kde4automoc.cpp > license.txt
install -D license.txt ${pkgdir}/usr/share/licenses/automoc4/license.txt
}
|