summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 92b4fb1eb63f143fe4fa8fdceed0fad3a5a18d8e (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
# Maintainer: Matt Harrison <matt@harrison.us.com>
# Maintained at: https://github.com/matt-h/aur-pkgbuilds

pkgname=mbusd
pkgver=0.4.0
pkgrel=1
pkgdesc="Open-source Modbus TCP to Modbus RTU (RS-232/485) gateway."
arch=('x86_64' 'i686' 'armv7h')
url="https://github.com/3cky/mbusd"
license=('BSD')
depends=('glibc')
makedepends=('cmake')
source=("${pkgname}-${pkgver}.tar.xz::https://github.com/3cky/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('8458afc455a28c8f798cadd3982f9e03496a494a2269e31e8255a6ca273a6898')

build() {
  cd "$srcdir/${pkgname}-${pkgver}/"
  mkdir -p build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr ../
  make
}

package() {
  cd "$srcdir/${pkgname}-${pkgver}/build"
  make DESTDIR="$pkgdir" PREFIX=/usr install
  install -Dm644 "$srcdir/${pkgname}-${pkgver}/LICENSE" "$pkgdir"/usr/share/licenses/mbusd/LICENSE
}