aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libmodbus/APKBUILD
blob: d7e97efe51d4b9ef0cfabe30ffef06859efe6364 (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
# Contributor: Oz Tiram <oz.tiram@gmail.com>
# Maintainer: Oz Tiram <oz.tiram@gmail.com>
pkgname=libmodbus
pkgver=3.1.6
pkgrel=1
pkgdesc="Modbus library which supports RTU communication over a serial line or a TCP link"
url="https://libmodbus.org/"
source="https://libmodbus.org/releases/libmodbus-$pkgver.tar.gz
	772a6e2d2249e34f460a072f6452349ae6b3b921.patch
	"
arch="all"
license="LGPL-2.1-or-later"
makedepends="linux-headers"
subpackages="$pkgname-dev $pkgname-doc"

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}
sha512sums="2e39aea41b1cfb30239c3d8271c68841d645a44a15019090e2efd16979bde373c76532f992aa6a4587b95c65ed9829705f32e698e445df7c0e1d52d0d1165bce  libmodbus-3.1.6.tar.gz
5ee0264175024b482b6f6efaf6cd7fcdb6eb4b77b98634944f760ce73d67b5d7e157672a4662b6fb52d93d40862f361045c87d3c93919f67778402ff09b8e89c  772a6e2d2249e34f460a072f6452349ae6b3b921.patch"