blob: 57a412ebcd0342de34d20346148e227dbba5055d (
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
|
# Maintainer: fedefranc <ffaur-at-duck-dot-com>
# Contributor: darkshines
# Contributor: Stas Elensky <stas-at-flexsys-dot-com-dot-ua>
# Contributor: honzor
pkgname=libmodbus-git
_gitname=libmodbus
pkgver=3.1.11.r1.b25629b
pkgrel=1
pkgdesc="A Modbus library for Linux, Mac OS X, FreeBSD, QNX and Win32 (github version)"
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
url="https://libmodbus.org"
license=('LGPL-2.1-or-later')
depends=('glibc')
makedepends=(git asciidoc xmlto)
provides=(libmodbus)
conflicts=(libmodbus)
options=(!libtool)
source=(git+https://github.com/stephane/libmodbus.git)
md5sums=('SKIP')
pkgver() {
cd $srcdir/$_gitname
printf "%s" "$(git describe --tags --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g' | cut -c 2-)"
}
build() {
cd "$srcdir/$_gitname"
autoreconf --install --symlink --force
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/$_gitname"
make DESTDIR="$pkgdir/" install
}
# vim:set ts=2 sw=2 et:
|