summaryrefslogtreecommitdiff
path: root/pcr/qxmlrpc/PKGBUILD
blob: b39b40890629c711765bd31dec4c7ff299183c11 (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
41
42
43
44
# Maintainer (Arch): Sid Karunaratne <sid at karunaratne dot net>
pkgname=qxmlrpc
pkgver=6
pkgrel=1
pkgdesc="a full Qt4 based implementation of XML-RPC protocol"
arch=('i686' 'x86_64' 'mips64el')
url="https://code.google.com/p/qxmlrpc"
license=('LGPL')
depends=('qt')
makedepends=('subversion')
source=("https://repo.parabolagnulinux.org/other/$pkgname-$pkgver-$pkgrel-any.src.tar.xz"{,.sig}
        "01_build_targets.patch"
        "02_staticlib_removed.patch"
        "03_client.h_include_fix.patch"
        "04_do_not_link_gui.patch")
md5sums=("87a89cc118e816265989a87a2b3c9321"
        "7f10b0f33b6d0a67136838740b4b7c72"
        "7d997d9fc0f8ec08e7b0c640480eb941"
        "ee1a3d2a284c93f41d3c76c163ee734d"
        "c5cacf7e13b93abb3e8e223118c5abbb"
        "8ff188be390bcd1966b354d7159fd0e6")

build () {
    cd "${srcdir}/${pkgname}"
    msg "Starting build..."

    patch -p1 < ../01_build_targets.patch
    patch -p1 < ../02_staticlib_removed.patch
    patch -p1 < ../03_client.h_include_fix.patch
    patch -p1 < ../04_do_not_link_gui.patch

    qmake
    make
}

package() {
    install -Dm 755 "$srcdir/$pkgname/libqxmlrpc.so" "$pkgdir/usr/lib/libqxmlrpc.so"
    install -Dm 755 "$srcdir/$pkgname/xmlrpc/client.h" "$pkgdir/usr/include/qxmlrpc/client.h"
    install -Dm 755 "$srcdir/$pkgname/xmlrpc/request.h" "$pkgdir/usr/include/qxmlrpc/request.h"
    install -Dm 755 "$srcdir/$pkgname/xmlrpc/response.h" "$pkgdir/usr/include/qxmlrpc/response.h"
    install -Dm 755 "$srcdir/$pkgname/xmlrpc/server.h" "$pkgdir/usr/include/qxmlrpc/server.h"
    install -Dm 755 "$srcdir/$pkgname/xmlrpc/serverintrospection.h" "$pkgdir/usr/include/qxmlrpc/serverintrospection.h"
    install -Dm 755 "$srcdir/$pkgname/xmlrpc/variant.h" "$pkgdir/usr/include/qxmlrpc/variant.h"
}