projects/aports·blob master · refs

52 lines · 1.9 KiB

1# Contributor: Olliver Schinagl <[email protected]>
2# Maintainer: Olliver Schinagl <[email protected]>
3pkgname=openv2g
4pkgver=0.9.5
5pkgrel=0
6pkgdesc="Implements ISO IEC 15118 and also the DIN 70121 vehicle to grid (V2G) communication interface"
7url="https://openv2g.sourceforge.net/"
8arch="all"
9license="LGPL-3.0-or-later"
10options="!check" # No tests available
11subpackages="lib$pkgname:libs lib$pkgname-dev"
12source="
13 0001-Enable-XMLDSIG-codec-support.patch
14 0002-Violate-the-spec-less-by-downgrading-to-ASCII-for-UT.patch
15 makefiles.patch
16 $pkgname.pc.in
17 $pkgname-$pkgver.zip::https://downloads.sourceforge.net/sourceforge/openv2g/OpenV2G_$pkgver.zip
18"
19
20unpack() {
21 mkdir -p "$builddir"
22 unzip "$srcdir/$pkgname-$pkgver.zip" -d "$builddir"
23 # To ensure patches can be applied, convert the \r\n code-base first.
24 find "$builddir" -type f -exec dos2unix '{}' \;
25}
26
27build() {
28 cd Release
29 make
30
31 sed \
32 -e "s|@PKGVER@|${pkgver}|g" \
33 "$srcdir/$pkgname.pc.in" > "$builddir/$pkgname.pc"
34
35}
36
37package() {
38 depends="lib$pkgname"
39 cd Release
40 make DESTDIR="$pkgdir/usr" install
41
42 install -D -m 0644 -t "$pkgdir/usr/lib/pkgconfig/" \
43 "$builddir/$pkgname.pc"
44}
45
46sha512sums="
470d055188801e0724b78f935bd3de72ad7b673dab894577f255eb895a4871f1e775476adf6c55427c293e85f488140cad51d7ce85a626dbba6bb87c96a3866064 0001-Enable-XMLDSIG-codec-support.patch
486737110c91830f9d93fbce1cc54a73d0a86d12ddefb69cbe1a91ffdb478626b0aa8d0ccdc3392fd2213747a5eef5da948a0249e9e3c8844953d36118dc28425c 0002-Violate-the-spec-less-by-downgrading-to-ASCII-for-UT.patch
497f23f23eba706e1d1e8dd3085c082dfbe3a50387b8d895a4bf321077bf27b7b0c4b72669e7e5db2be0eb16687deeec9832f0804fb96485c430bc00e83f9f45b5 makefiles.patch
5094d1f15c33ae7327d76320d5ba35febd6068393e70667729953edfc3a54eb1dc91513bec8abf11b14b53154594746123cca8db00cb31d5a5d139b38054d8a986 openv2g.pc.in
51a492012fc1820d97fe679f997404d8ed02cfee85137197dbd8084daf35b078c29b54e87c446dec3a420e6b414a6c40cd8eca0528038ab986c4fc91240d809a02 openv2g-0.9.5.zip
52"