mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 20:36:40 +02:00
65 lines
2.1 KiB
Plaintext
65 lines
2.1 KiB
Plaintext
maintainer="Leon White <badfunkstripe@gmail.com>"
|
|
pkgname=duckdb
|
|
pkgver=1.5.2
|
|
pkgrel=0
|
|
# Run `git describe --tags --long` from source repo checked out at the $pkgver tag to get this 10-character hash
|
|
_pkghash=8a5851971f
|
|
pkgdesc="High-performance analytical database system"
|
|
url="https://duckdb.org"
|
|
# No support for 32-bit or big-endian architectures
|
|
# Other archs exit with Error: Unrecognized opcode: `pause'
|
|
arch="x86_64 aarch64"
|
|
license="MIT"
|
|
makedepends="
|
|
cmake
|
|
openssl-dev
|
|
samurai
|
|
unixodbc-dev
|
|
"
|
|
depends_dev="$pkgname-libs=$pkgver-r$pkgrel"
|
|
subpackages="
|
|
$pkgname-dev
|
|
$pkgname-doc
|
|
$pkgname-libs
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/duckdb/duckdb/archive/refs/tags/v$pkgver.tar.gz
|
|
fix-oob-array-access.patch
|
|
"
|
|
|
|
export OVERRIDE_GIT_DESCRIBE="v$pkgver-0-g$_pkghash"
|
|
|
|
build() {
|
|
# TODO: unvendor thirdparty source files
|
|
# shellcheck disable=2086
|
|
cmake -B build -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCORE_EXTENSIONS='icu;parquet;json' \
|
|
-DMUSL_ENABLED=ON \
|
|
-DOVERRIDE_GIT_DESCRIBE="$OVERRIDE_GIT_DESCRIBE" \
|
|
-DSET_DUCKDB_LIBRARY_VERSION=ON
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
# test/sql/copy/parquet/writer/parquet_write_memory_limit.test_slow (oom on aarch64)
|
|
# test/sql/storage/parallel/insert_order_preserving_odd_sized_batches.test_slow: flaky on builders
|
|
build/test/unittest "*" \
|
|
exclude:'test/sql/copy/parquet/writer/parquet_write_memory_limit.test_slow' \
|
|
exclude:'test/sql/storage/parallel/insert_order_preserving_odd_sized_batches.test_slow'
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
|
|
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
|
|
|
|
# We don't need these source files
|
|
rm -rf "$pkgdir"/usr/duckdb_build "$pkgdir"/usr/includes.list "$pkgdir"/usr/sources.list
|
|
}
|
|
|
|
sha512sums="
|
|
1a10d0b3dbba37efee9fea7e4c5f0fe4b099d486db21bb81e895afc8ecbf8689657a0f4de0dc7dba020ff2762f8517a8707ecdf4892ce3f50b8c79a4f2e6bbf4 duckdb-1.5.2.tar.gz
|
|
77d745eb7c26881125707e5bec5a38c9c6179a30d36ead435d593f97ad56bf428070b744e02faa4d33d02ae46596ab51fc38d9e285a23313ecc8f1d5b8acb2cf fix-oob-array-access.patch
|
|
"
|