summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 24f6d86c3d0bf64e447d450d223012905b1c1c07 (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
# Maintainer: Alexander Susha <isushik94@gmail.com>
pkgname=kms-jsonrpc
pkgver=6.7.0
pkgrel=3
pkgdesc='Kurento jsonrpc library'
arch=('any')
url='http://www.kurento.org/'
license=('LGPL v2.1')
depends=('boost-libs' 'jsoncpp')
makedepends=('cmake' 'pkg-config' 'jsoncpp' 'boost' 'boost-libs' 'kms-cmake-utils>=6.7.0')
provides=(${pkgname})
conflicts=(${pkgname})
source=("https://github.com/Kurento/${pkgname}/archive/${pkgver}.tar.gz"
        'JsonRpcClient.cpp.patch')
sha256sums=('7f2116135369603d831bc6dddbb00b57fddfeeb698c5f69a498a8f5606c400a2'
            '79f03ddfdde5ea6fd8a52e2da1418c2ba121a97e07c88d024de5d84a10cad345')

prepare(){
    cd ${srcdir}/${pkgname}-${pkgver}
    patch -Nup1 < ../JsonRpcClient.cpp.patch
    find . -type f -exec sed -i -E "s/kmsjsoncpp/jsoncpp/g" {} \;
}
build() {
    mkdir -p "build"
    cd "build"

    cmake ${srcdir}/${pkgname}-${pkgver}/. -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_CXX_FLAGS="-Wno-deprecated-declarations"
}
package() {
    make -C build DESTDIR="${pkgdir}" install
}