blob: 77df8245db41d5e90ab6511582a3aa61d2e9fbc3 (
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
|
# Maintainer: Josef Hopfgartner <josef@netzagentur.at>
pkgname=libzbxmodbus-git
_pkgname=libzbxmodbus
pkgver=20161101.aa2a57f
pkgrel=1
pkgdesc='Zabbix Modbus loadable module'
url='https://share.zabbix.com/dir-libraries/zabbix-loadable-modules/modbus-loadable-module'
license=('GPL2.0')
arch=('i686' 'x86_64')
makedepends=('git' 'make' )
depends=('zabbix-server' 'libmodbus-dev')
provides=(libzbxmodbus)
conflicts=(libzbxmodbus)
install=
source=('git://github.com/v-zhuravlev/libzbxmodbus.git')
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
git log -1 --format='%cd.%h' --date=short | tr -d -
}
build() {
cd "${srcdir}/${_pkgname}"
autoreconf --install --symlink --force
./configure --enable-zabbix-3.2 --prefix=/usr
make
}
package() {
cd "${srcdir}/${_pkgname}"
make DESTDIR="${pkgdir}" install
}
|