summaryrefslogtreecommitdiff
path: root/extra/prison/PKGBUILD
blob: 579d0be69fd4e90320e6b2a955f32c5a01a4d996 (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: PKGBUILD 208045 2014-03-17 08:06:03Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>

pkgname=prison
pkgver=1.1.0
pkgrel=1
pkgdesc="A barcode API to produce QRCode barcodes and DataMatrix barcodes"
arch=('i686' 'x86_64')
url='https://projects.kde.org/projects/kdesupport/prison'
license=('GPL')
depends=('qt4' 'libdmtx' 'qrencode')
makedepends=('cmake')
source=("http://download.kde.org/stable/${pkgname}/1.1/src/${pkgname}-${pkgver}.tar.xz")
md5sums=('d809eaf66b0954dc28e8d63afca838ed')

prepare() {
  mkdir build
}

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

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