summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7d3f09ca370d7a0467b48ae71fce1faa5da177c7 (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
pkgname=opendnp3-git
_name=${pkgname%-git}
pkgver=2.3.1.r6.g44c06cb14
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc='DNP3 (IEEE-1815) protocol stack built with modern C++'
license=('APACHE')
depends=('asio')
makedepends=('cmake' 'git')
provides=("${_name}")
conflicts=("${_name}")
url="https://github.com/dnp3/${_name}"
source=("${_name}::git://github.com/dnp3/${_name}.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_name}"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${srcdir}/${_name}"
  cmake .
  make
}

package() {
  cd "${srcdir}/${_name}"
  make DESTDIR="${pkgdir}" install
}