summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 342cc4ecd36d038817b9c40a368f2f08c5e6f11e (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
45
46
47
48
49
50
51
52
53
54
55
56
# Maintainer: taotieren <admin@taotieren.com>

pkgname=pdserv
pkgver=3.3.1
pkgrel=1
pkgdesc="The PdServ library provides process data communication mechanisms for Linux real-time applications in user space (i. e. using RT-PREEMPT). The main focus is placed on providing a process-data interface without interfering real-time operation."
arch=($CARCH)
url="https://gitlab.com/etherlab.org/pdserv"
license=('GPL-3.0-or-later')
provides=(${pkgname})
conflicts=(${pkgname})
replaces=()
depends=(
    gcc-libs
    glibc
    gnutls
    libsasl
    libyaml
    log4cplus
    db
)
makedepends=(
    git
    cmake
    ninja
    #     doxygen
    pkgconf
)
checkdepends=()
optdepends=(
    'pam: PAM (Pluggable Authentication Modules) library'
    'pdcom: The Data Logging Service (DLS) is a data logging system for EtherLab, that is capable of collecting, compressing and storing high-frequency realtime data. The goal is, to allow the user unlimited and performant access to the stored data.')
backup=()
options=()
#install=${pkgname}.install
source=(
    "${pkgname}-${pkgver}.tar.gz::${url}/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")

sha256sums=('30bdbbbee81362b282c608b206a4f60f3b5ad274f76d992fcbe412686f6a82a4')

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    cmake -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DPAM_SERVICE_DIR=/etc/security \
        -Wno-dev \
        -B build \
        -G Ninja

    ninja -C build
}

package() {

    DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgname}-${pkgver}/build install
}