From b39d963afe28fb594dbf90800561432c7548020c Mon Sep 17 00:00:00 2001
From: Tomas Safarik <safarik@server.cz>
Date: Sun, 22 Oct 2017 14:17:18 +0200
Subject: [PATCH] package nanopb with protocol definitions for generator (#804)

---
 android/nanopb/APKBUILD | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/android/nanopb/APKBUILD b/android/nanopb/APKBUILD
index 6de56922045..7b5cad28e0c 100644
--- a/android/nanopb/APKBUILD
+++ b/android/nanopb/APKBUILD
@@ -33,6 +33,14 @@ package() {
 	for i in nanopb_generator.py protoc-gen-nanopb; do
 		install -Dm755 "generator/$i" "$pkgdir/usr/bin/$i"
 	done
+
+	# Protocol definitions for generator
+	make -C generator/proto
+	for i in __init__.py nanopb_pb2.py plugin_pb2.py; do
+		echo "installing $i"
+		install -Dm755 "generator/proto/$i" "$pkgdir/usr/lib/python2.7/proto/$i"
+	done
+
 }
 
 sha512sums="1fa18d69ebfba2a58214beebd31fbbdd1edd71a19978754288adc09be6d5782feeb7bab2916448add2ab5bf7072d377101c7441b3e74619339dc545df3a73275  nanopb-0.3.9.tar.gz"
-- 
GitLab