blob: fcd6507a526386308deea3485f05fcf58219f6ec (
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=3.1.2.r6.gc1dc7165a
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+https://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
}
|