summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJosef Hopfgartner2017-04-14 08:57:56 +0200
committerJosef Hopfgartner2017-04-14 08:57:56 +0200
commitdcc3d453bd9f01af27aeabf84161bd8822abe843 (patch)
tree0d7ab86000e9aeb4c173bc0608c71abb5902c641 /PKGBUILD
downloadaur-libzbxmodbus-git.tar.gz
initial
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..77df8245db4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}