summaryrefslogtreecommitdiff
path: root/extra/qimageblitz/PKGBUILD
blob: 7a568f85e88d846b9c456fdadfb9bf54afea3e12 (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
# $Id: PKGBUILD 215848 2014-06-30 17:12:23Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>

pkgname=qimageblitz
pkgver=0.0.6
pkgrel=4
pkgdesc="A graphical effect and filter library for KDE"
arch=('i686' 'x86_64')
url="http://www.kde.org/"
license=('GPL2')
depends=('qt4')
makedepends=('cmake')
source=("http://download.kde.org/stable/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
        'no-executable-stack.patch')
md5sums=('0ae2f7d4e0876764a97ca73799f61df4'
         '67a56f4418bb2bda5f8a7444931ca7ac')

prepare() {
  mkdir build

  cd ${pkgname}-${pkgver}
  patch -p3 -i "${srcdir}"/no-executable-stack.patch
}

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

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