[arch-commits] Commit in apache-orc/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Wed Dec 22 20:50:54 UTC 2021
Date: Wednesday, December 22, 2021 @ 20:50:54
Author: felixonmars
Revision: 1082880
archrelease: copy trunk to community-staging-x86_64
Added:
apache-orc/repos/community-staging-x86_64/
apache-orc/repos/community-staging-x86_64/PKGBUILD
(from rev 1082879, apache-orc/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: apache-orc/repos/community-staging-x86_64/PKGBUILD (from rev 1082879, apache-orc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-12-22 20:50:54 UTC (rev 1082880)
@@ -0,0 +1,50 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: Guillaume Horel <guillaume.horel at gmail.com>
+
+_pkg=orc
+pkgname=apache-${_pkg}
+pkgver=1.7.1
+pkgrel=2
+pkgdesc="Columnar storage for Hadoop workloads."
+arch=(x86_64)
+url="https://orc.apache.org"
+license=(Apache)
+depends=(lz4 protobuf snappy zlib zstd)
+makedepends=(cmake)
+checkdepends=(gtest)
+options=(staticlibs)
+source=(https://downloads.apache.org/${_pkg}/${_pkg}-${pkgver}/${_pkg}-${pkgver}.tar.gz{,.asc})
+sha256sums=(65d71e571238cbcb7c3cbb9a10f7ad988f452d17c58479154be3b9d6ec27d005 SKIP)
+validpgpkeys=(F28C9C925C188C35E345614DEDA00CE834F0FC5C) # Dongjoon Hyun (CODE SIGNING KEY) <dongjoon at apache.org>
+
+prepare(){
+ cd ${_pkg}-${pkgver}
+ sed -i "s|ByteSize|ByteSizeLong|g" c++/test/CreateTestFiles.cc
+ sed -i "s|ByteSize|ByteSizeLong|g" c++/test/TestBufferedOutputStream.cc
+}
+
+build(){
+ cmake -B build -S ${_pkg}-${pkgver} \
+ -DCMAKE_CXX_FLAGS="${CXXFLAGS} -fPIC" \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DLZ4_HOME="/usr" \
+ -DPROTOBUF_HOME="/usr" \
+ -DSNAPPY_HOME="/usr" \
+ -DZLIB_HOME="/usr" \
+ -DZSTD_HOME="/usr" \
+ -DORC_PREFER_STATIC_ZLIB=OFF \
+ -DBUILD_LIBHDFSPP=OFF \
+ -DBUILD_JAVA=OFF \
+ -DINSTALL_VENDORED_LIBS=OFF
+ make -C build
+}
+
+check(){
+ # TestDecompression.testLzoLong is failing
+ make -C build test-out || echo "Warning: Tests failed"
+}
+
+package(){
+ make DESTDIR="${pkgdir}" -C build install
+}
More information about the arch-commits
mailing list