summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 380f2fa46abd51bf89f4199b77f8c2026dd7d128 (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
# Contributor: Eric Fung <loseurmarbles [at] gmail [dot] com>
# Contributor: Ivan Semkin (ivan at semkin dot ru)
# Contributor: Iwan Timmer <irtimmer@gmail.com>

pkgname=dbus-cpp
pkgdesc='A header-only dbus-binding leveraging C++-11'
pkgver=5.0.3
pkgrel=1
url='https://gitlab.com/ubports/core/lib-cpp/dbus-cpp'
arch=('x86_64' 'i686')
license=('LGPL3')
groups=('lib-cpp')
depends=('dbus' 'libxml2' 'process-cpp')
makedepends=('cmake' 'boost')
source=('https://gitlab.com/ubports/core/lib-cpp/dbus-cpp/-/archive/5.0.3/dbus-cpp-5.0.3.tar.gz')
sha256sums=('465ca23024c8f245d13a0afd454da17e6344d0c78941d99b7c9323a17f6e82ba')

prepare() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  sed -e '82d' -i CMakeLists.txt
}

build() {
  mkdir -p "${srcdir}/${pkgname}-${pkgver}/_build"
  cd "${srcdir}/${pkgname}-${pkgver}/_build"

  cmake -DCMAKE_INSTALL_LIBEXECDIR="lib/${pkgname}" \
        -DCMAKE_BUILD_TYPE=Release ..
  cmake --build .
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}/_build"

  cmake --install . --prefix="${pkgdir}/usr"
}