summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4382b18f9840bbd50d8dc68b465686457c505f7e (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
64
65
66
67
# Maintainer: taotieren <admin@taotieren.com>

pkgname=data-logging-service
_name=dls
pkgver=1.6.5
pkgrel=1
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/dls"
license=('GPL-3.0-or-later')
provides=(${pkgname})
conflicts=(${pkgname})
replaces=()
_qt=qt5
depends=(
    fftw
    fltk
    gcc-libs
    glibc
    hicolor-icon-theme
    hdf5
    libxml2
    pcre
    perl
    protobuf
    uriparser
    zlib
    $_qt-base
    $_qt-svg
    # AUR
    pdcom
)
makedepends=(
    git
    cmake
    ninja
    $_qt-tools
    #     doxygen
    systemd-libs
    pkgconf
)
backup=()
options=()
#install=${pkgname}.install
source=(
    "${_name}-${pkgver}.tar.gz::${url}/-/archive/${pkgver}/${_name}-${pkgver}.tar.gz")

sha256sums=('473430164919334f9ffbbd1e52f291ea73c6740a633ebe0b98453e81200ad264')

build() {
    cd "${srcdir}/${_name}-${pkgver}"

    echo ${pkgver} >revision
    cmake -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -Wno-dev \
        -B build \
        -G Ninja

    ninja -C build
}

package() {
    DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${_name}-${pkgver}/build install
    mv -fv ${pkgdir}/usr/etc/* ${pkgdir}/etc/
    rm -rf ${pkgdir}/usr/etc
}