summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ea9af341836771f48b7a752f96d0e272960e9a28 (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
57
58
59
60
61
62
63
# Maintainer: taotieren <admin@taotieren.com>

pkgbase=pdcom
pkgname=(pdcom)
pkgver=5.3.2
pkgrel=3
pkgdesc="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."
arch=($CARCH)
url="https://gitlab.com/etherlab.org/pdcom"
license=('GPL-3.0-or-later')
provides=(${pkgname})
conflicts=(${pkgname})
replaces=()
depends=(
    expat
    gcc-libs
    glibc
    gnutls
    libsasl
    python
)
makedepends=(
    git
    cmake
    ninja
    #     doxygen
    systemd-libs
    pkgconf
    pybind11
    python-build
    python-installer
    python-wheel
    python-setuptools
)
checkdepends=(
    ctest)
backup=()
options=()
#install=${pkgname}.install
source=(
    "${pkgbase}-${pkgver}.tar.gz::${url}/-/archive/${pkgver}/${pkgbase}-${pkgver}.tar.gz")

sha256sums=('de7b2b4394454cab40cc3665c1614d84fc81da25b7871c77e2accb7ecfd56db1')

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

    ninja -C build
    cd python
    python -m build --wheel --no-isolation
}

package() {
    DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgbase}-${pkgver}/build install

    cd "${srcdir}"/${pkgbase}-${pkgver}/python
    python -m installer --destdir="${pkgdir}" dist/*.whl
}