summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2f10b9ce8b5c0449c3be38eda40145408a14b12d (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
# Maintainer: taotieren <admin@taotieren.com>

pkgname=etherlab
pkgver=2.4.0
pkgrel=1
pkgdesc="An Open Source Toolkit for rapid real time code generation under Linux using Simulink/RTW and EtherCAT technology."
arch=(any)
url="https://gitlab.com/etherlab.org/etherlab"
license=('GPL-3.0-or-later')
provides=(${pkgname})
conflicts=(${pkgname})
replaces=()
depends=(
    sh
    python
)
makedepends=(
    git
    cmake
    ninja
)
backup=()
options=()
#install=${pkgname}.install
source=(
    "${pkgname}-${pkgver}.tar.gz::${url}/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")

sha256sums=('14f3e15dd3e84b604d6b7fef4586a85e1a70504fec73b2917bed27c5582b3455')

build() {
    cd "${srcdir}/${pkgname}-${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}"/${pkgname}-${pkgver}/build install
}