diff options
author | davidovski <david@davidovski.xyz> | 2022-06-27 23:09:07 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-27 23:09:07 +0100 |
commit | f6332a43c35387c4a2dea1746be5fd092890ae0e (patch) | |
tree | d6599f63de04096f3fc21a98e0b3bb39d55a3531 /repo/protobuf/protobuf.xibuild | |
parent | f13e0cac13f90f7f57bce3b26b2e6383de6e4ad2 (diff) |
added lf and iptables
Diffstat (limited to 'repo/protobuf/protobuf.xibuild')
-rw-r--r-- | repo/protobuf/protobuf.xibuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/repo/protobuf/protobuf.xibuild b/repo/protobuf/protobuf.xibuild new file mode 100644 index 0000000..187f3a0 --- /dev/null +++ b/repo/protobuf/protobuf.xibuild @@ -0,0 +1,38 @@ +#!/bin/sh + +NAME="protobuf" +DESC="Library for extensible, efficient structure packing" + +MAKEDEPS="zlib autoconf automake libtool" + +PKG_VER=3.18.1 +SOURCE="https://github.com/google/protobuf/archive/v$PKG_VER.tar.gz" + +ADDITIONAL=" +ruby-fix-cflags.patch +skip-failing-tests.patch +trim-rakefile.patch +" + +prepare() { + apply_patches + + ./autogen.sh + + # symlink tests to the test directory + rm -rf third_party/googletest +} + +build() { + CXXFLAGS="$CXXFLAGS -fno-delete-null-pointer-checks -Wno-error" \ + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var + make +} + +package() { + make DESTDIR="$PKG_DEST" install +} |