updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / kdab-charm / PKGBUILD
blob47401cb457c6197f796d37375af955e42002e1e7
1 # Contributor: Matteo Agostinelli <matteo@agostinelli.me>
2 pkgname=kdab-charm
3 pkgver=1.5.2
4 pkgrel=1
5 pkgdesc="Charm is a program that helps to keep track of time"
6 arch=('x86_64' 'i686')
7 url="https://github.com/KDAB/Charm"
8 license=('GPL')
9 makedepends=('gcc' 'cmake')
10 source=(https://github.com/KDAB/Charm/tarball/$pkgver 
11         cmake_git.patch)
12 md5sums=('48d816277f9f5c8f34ae2c1a7813baec'
13          '63106b992d878081c204ea9232b4eaf1')
15 build() {
16     cp cmake_git.patch "$srcdir/KDAB-Charm-6b7117a"
17     cd "$srcdir/KDAB-Charm-6b7117a"
18     patch -p0 < cmake_git.patch
19     rm -rf build
20     mkdir  build
21     cd build
22     cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCharm_VERSION=$pkgver
23     make clean
24     make || return 1
25     make DESTDIR=$startdir/pkg/ install || return 1