blob: aeddf461f41c33ed851375c53b15aad8f0c2b5f3 (
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
35
36
37
38
39
40
41
42
|
# Maintainer: Farzin Monsef <farzin [at] inphraz [dot] ir>
# Contributor: Henrik Juul Pedersen <henrikjuul AT gmail>
pkgname=libiec61850
pkgver=1.6.0
pkgrel=1
pkgdesc="libIEC61850 provides a server and client library for IEC 61850"
arch=('x86_64' 'i686')
url="http://libiec61850.com/"
license=('GPLv3')
makedepends=('mbedtls')
_mbedtls_pkgver=3.6.0
_mbedtls=mbedtls-${_mbedtls_pkgver}
_srcname=${pkgname}-${pkgver}
source=("https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v$_mbedtls_pkgver.tar.gz"
"https://github.com/mz-automation/libiec61850/archive/refs/tags/v$pkgver.tar.gz"
)
sha256sums=('32c500e73ee878e193e7d66bf5e4c34fb42bb968a6c9f9488aa466b16f6f3bff'
'0dd0adc7f13215e961d22511bcb1dadfdbdaab969f11a0d975775a6ebdff8099')
prepare()
{
# CMake automatically builds with TLS support if mbedtls is present.
mv --force ${_mbedtls} ${_srcname}/third_party/mbedtls/
}
build() {
mkdir -p ${_srcname}/build
cd ${_srcname}/build
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$pkgdir/usr/ \
-DBUILD_EXAMPLES=OFF
make
}
#Install prefix set by cmake
package() {
cd ${_srcname}/build
make install
}
|