diff options
author | OSAMC | 2023-12-15 23:51:23 +0000 |
---|---|---|
committer | Florian Hülsmann | 2023-12-15 23:51:23 +0000 |
commit | 71cd69039c9c9533b7ae0fd961a07037a055fe05 (patch) | |
tree | 9d6fb891d8ccfc51add21f86be4c79b6db0cece7 | |
parent | eebfff9f6310af41636863f8d44658305e43d91e (diff) | |
download | aur-71cd69039c9c9533b7ae0fd961a07037a055fe05.tar.gz |
ola: use legacy protobuf to fix build (#288)
* ola: fix compilation with newer libprotoc
* use protobuf-21
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 36 |
3 files changed, 30 insertions, 13 deletions
@@ -1,7 +1,7 @@ pkgbase = ola pkgdesc = Open Lighting Architecture for controlling entertainment lighting equipment pkgver = 0.10.9 - pkgrel = 2 + pkgrel = 3 url = https://www.openlighting.org arch = x86_64 arch = aarch64 @@ -15,12 +15,14 @@ pkgbase = ola makedepends = liblo makedepends = libmicrohttpd makedepends = ncurses - makedepends = protobuf + makedepends = protobuf-21 makedepends = python-numpy makedepends = python-protobuf makedepends = util-linux-libs source = ola-0.10.9.tar.gz::https://github.com/OpenLightingProject/ola/archive/refs/tags/0.10.9.tar.gz + source = fix-protobuf-v20.patch::https://github.com/OpenLightingProject/ola/pull/1875.patch sha256sums = d2a80d907f5a0a5169583060bd32aa0fdbb2fdfe18d1194dd922595ab6d447b5 + sha256sums = 6e57bb39c94981f62da6cd6b5c2744ace8ebe4b7b9fa8ee383800c1e3b8d6742 pkgname = ola depends = avahi diff --git a/.gitignore b/.gitignore index 57e7fd90984f..08f9e2fe687b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/fix-protobuf-v20.patch pkg/ src/ *.tar.* @@ -4,27 +4,41 @@ pkgbase=ola pkgname=(ola ola-docs) pkgver=0.10.9 -pkgrel=2 +pkgrel=3 pkgdesc='Open Lighting Architecture for controlling entertainment lighting equipment' arch=(x86_64 aarch64) url='https://www.openlighting.org' license=(LGPL2.1 GPL2) depends=() -makedepends=(avahi cppunit doxygen flake8 libftdi-compat liblo libmicrohttpd ncurses protobuf +makedepends=(avahi cppunit doxygen flake8 libftdi-compat liblo libmicrohttpd ncurses protobuf-21 python-numpy python-protobuf util-linux-libs) -source=("$pkgbase-$pkgver.tar.gz::https://github.com/OpenLightingProject/$pkgbase/archive/refs/tags/$pkgver.tar.gz") -sha256sums=('d2a80d907f5a0a5169583060bd32aa0fdbb2fdfe18d1194dd922595ab6d447b5') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/OpenLightingProject/$pkgbase/archive/refs/tags/$pkgver.tar.gz" + "fix-protobuf-v20.patch::https://github.com/OpenLightingProject/$pkgbase/pull/1875.patch") +sha256sums=('d2a80d907f5a0a5169583060bd32aa0fdbb2fdfe18d1194dd922595ab6d447b5' + '6e57bb39c94981f62da6cd6b5c2744ace8ebe4b7b9fa8ee383800c1e3b8d6742') + +prepare() { + cd $pkgbase-$pkgver + # https://github.com/OpenLightingProject/ola/pull/1875 + patch -p1 -i ../fix-protobuf-v20.patch +} build() { + local config_options=( + --prefix=/usr + --enable-silent-rules + --enable-python-libs + --enable-rdm-tests + --enable-ja-rule + --enable-e133 + --with-protoc=protoc-21 + #--enable-java-libs + ) cd $pkgbase-$pkgver autoreconf -i - ./configure --prefix=/usr \ - --enable-silent-rules \ - --enable-python-libs \ - --enable-rdm-tests \ - --enable-ja-rule \ - --enable-e133 - # --enable-java-libs + export CXXFLAGS="$CXXFLAGS -I/usr/include/abseil-cpp11 -I/usr/include/protobuf-21" + export LDFLAGS="$LDFLAGS -L/usr/lib/protobuf-21" + ./configure "${config_options[@]}" make make doxygen-doc } |