aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOz N Tiram <oz.tiram@gmail.com>2017-02-13 06:01:43 +0100
committerTimo Teräs <timo.teras@iki.fi>2017-02-14 07:42:54 +0000
commit80a2ee8a3830b194878a1110778ee9c8633df1af (patch)
treebbb82312f13fe87710af34899b530e48813cdce4
parent3995ff2de8c1cd9d7acf1dd2581c7b3e4cdbfaba (diff)
downloadaports-80a2ee8a3830b194878a1110778ee9c8633df1af.tar.bz2
aports-80a2ee8a3830b194878a1110778ee9c8633df1af.tar.xz
testing/libmodbus: new aport
-rw-r--r--testing/libmodbus/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/libmodbus/APKBUILD b/testing/libmodbus/APKBUILD
new file mode 100644
index 0000000000..3b51df7f65
--- /dev/null
+++ b/testing/libmodbus/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Oz Tiram <oz.tiram@gmail.com>
+# Maintainer: Oz Tiram <oz.tiram@gmail.com>
+pkgname=libmodbus
+pkgver=3.1.4
+pkgrel=0
+pkgdesc="Modbus library which supports RTU communication over a serial line or a TCP link"
+url="http://libmodbus.org/"
+source="http://libmodbus.org/releases/$pkgname-$pkgver.tar.gz"
+
+arch="all"
+license="LGPL-3"
+depends=""
+makedepends="linux-headers"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make || return 1
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="b1a8fd3a40d2db4de51fb0cbcb201806 libmodbus-3.1.4.tar.gz"
+sha256sums="c8c862b0e9a7ba699a49bc98f62bdffdfafd53a5716c0e162696b4bf108d3637 libmodbus-3.1.4.tar.gz"
+sha512sums="63f73894b27704f5e5b3ca0a364cc366c5b5d24903bb24384155890cf06c0f8e5c707a435a38129402ff6628ef3d611dd0db82f840b79cf1d205ebed2ac5681c libmodbus-3.1.4.tar.gz"