archrelease: copy trunk to community-any
[ArchLinux/community.git] / dbus-c++ / trunk / PKGBUILD
blobffd9e20eff917cd75a6d9c0c422088a4fdd85e08
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Ray Rashif <schiv@archlinux.org>
3 # Contributor: Xavier D. <magicrhesus@ouranos.be>
4 # Contributor: Zarra <zarraxx@gmail.com>
6 pkgname=dbus-c++
7 _pkgname="lib${pkgname}"
8 _upstream="dbus-cplusplus"
9 pkgver=0.9.0
10 pkgrel=10
11 pkgdesc="A C++ API for D-BUS"
12 arch=('x86_64')
13 url="http://dbus-cplusplus.sourceforge.net/"
14 license=('LGPL2.1')
15 depends=('dbus' 'gcc-libs' 'glib2' 'glibc')
16 provides=('libdbus-c++-1.so' 'libdbus-c++-glib-1.so')
17 source=("https://sourceforge.net/projects/${_upstream}/files/${pkgname}/${pkgver}/${_pkgname}-${pkgver}.tar.gz"
18         'gcc47.patch'
19         'disable-threading.patch'
20         'fix-writechar.patch'
21         'template-operators.patch')
22 sha512sums=('7acebbb4254b2886cc0f05c5ddeeeac0b5863c5552d32249463b89380b0b95b8225c80bd98b8c7fcaada42ab770b5eff41b15390cd0d78bf1ee322ac6c2de319'
23             'd8618e1eafd25be074ffecf958fbc04f1b2a844c865ec2d795565809a5d11e7f60c1a8c3a6d952b1485af6b199753b36c06f1759a5559274eed55cf5e6585e20'
24             '94d95089ea84af1438191285955bf0866a7d7cbe535ac7fb8282ef6fb96c4ee052f439fb8c9d0b18b9ebec65d39cc45754bb48192ffb46c3d0c4ed6b1b6693a6'
25             'df0a3a80d139877eaea5f352da5dfa2bc0407360ddfb59301707c77bd4329ecd986f366f27bbdd7e4ce385125c6ec46fcf115854aa01d97cf11dff905cd9a385'
26             'af8e6281e6eb9c94cae7e8feaf8a8d7b653e4b394f9cc72fa381f647bc9c891906007dd06f55c89449396c5efd84656fe71ff453c7023cabfaad15a23f0b8a86')
28 prepare() {
29   cd "${_pkgname}-${pkgver}"
30   patch -Np0 -i "${srcdir}/gcc47.patch"
31   patch -Np1 -i "${srcdir}/disable-threading.patch"
32   patch -Np1 -i "${srcdir}/fix-writechar.patch"
33   patch -Np1 -i "${srcdir}/template-operators.patch"
34   autoreconf -vfi
37 build() {
38   cd "${_pkgname}-${pkgver}"
39   # -lpthread needed
40   export LDFLAGS+=" -lpthread"
41   ./configure --prefix=/usr \
42               --disable-static \
43               --disable-ecore \
44               --enable-glib
45   make
48 package() {
49   cd "${_pkgname}-${pkgver}"
50   make DESTDIR="${pkgdir}" install
51   install -vDm 644 {AUTHORS,ChangeLog,NEWS,README,TODO} \
52     -t "${pkgdir}/usr/share/doc/${pkgname}"
54 # vim:set ts=2 sw=2 et: