blob: 00b65a2a8a3b51bbd15f2da031a9b10c224405bb (
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
38
39
40
|
# Maintainer: Florian Pritz <bluewind@xinu.at>
# Contributor: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
# Original Maintainer: Andrea Scarpino <andrea@archlinux.org>
# vercheck-pkgbuild: auto
# vercheck-ubuntu: name=qjson, repo=utopic
pkgname=lib32-qjson
pkgver=0.8.1
pkgrel=4
pkgdesc="A qt-based library that maps JSON data to QVariant objects (32-bit)"
arch=(x86_64)
license=(GPL)
url="http://qjson.sourceforge.net"
depends=(lib32-qt4)
makedepends=(cmake gcc-multilib)
source=(qjson-${pkgver}.tar.gz::"https://github.com/flavio/qjson/archive/${pkgver}.tar.gz")
md5sums=('4eef13da988edf8f91c260a3e1baeea9')
build() {
cd "qjson-${pkgver}"
export CC="gcc -m32"
export CXX="g++ -m32"
cmake . \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_INSTALL_DIR=/usr/lib32 \
-DCMAKE_BUILD_TYPE=Release \
-DQT_QTCORE_LIBRARY_RELEASE=/usr/lib32/libQtCore.so
make
}
package() {
cd "qjson-${pkgver}"
make DESTDIR="${pkgdir}" install
rm -r "${pkgdir}/usr/include/"
}
|