Github messages for voidlinux
 help / color / mirror / Atom feed
From: icp1994 <icp1994@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: duckdb-0.10.1
Date: Tue, 11 Jun 2024 22:01:01 +0200	[thread overview]
Message-ID: <20240611200101.C82082AE86@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-49367@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 477 bytes --]

There is an updated pull request by icp1994 against master on the void-packages repository

https://github.com/icp1994/void-packages duckdb
https://github.com/void-linux/void-packages/pull/49367

New package: duckdb-0.10.1
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture: **x86_64**

A patch file from https://github.com/void-linux/void-packages/pull/49367.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-duckdb-49367.patch --]
[-- Type: text/x-diff, Size: 2798 bytes --]

From 9952fc840b7bd896d58cdf878d277d3c72d99950 Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Tue, 4 Apr 2023 21:41:12 +0530
Subject: [PATCH] New package: duckdb-1.0.0

---
 srcpkgs/duckdb-devel    |  1 +
 srcpkgs/duckdb/template | 57 +++++++++++++++++++++++++++++++++++++++++
 srcpkgs/python3-duckdb  |  1 +
 3 files changed, 59 insertions(+)
 create mode 120000 srcpkgs/duckdb-devel
 create mode 100644 srcpkgs/duckdb/template
 create mode 120000 srcpkgs/python3-duckdb

diff --git a/srcpkgs/duckdb-devel b/srcpkgs/duckdb-devel
new file mode 120000
index 00000000000000..3da59dfc722faf
--- /dev/null
+++ b/srcpkgs/duckdb-devel
@@ -0,0 +1 @@
+duckdb
\ No newline at end of file
diff --git a/srcpkgs/duckdb/template b/srcpkgs/duckdb/template
new file mode 100644
index 00000000000000..1b0f502bb48192
--- /dev/null
+++ b/srcpkgs/duckdb/template
@@ -0,0 +1,57 @@
+# Template file for 'duckdb'
+pkgname=duckdb
+version=1.0.0
+revision=1
+archs="x86_64* aarch64*" # 32-bit FTBFS
+build_style=cmake
+build_helper="python3"
+configure_args="-DOVERRIDE_GIT_DESCRIBE=v${version}-0-gdeadbeeff
+ -DBUILD_EXTENSIONS='autocomplete;icu;fts;httpfs;json;parquet'"
+hostmakedepends="pkg-config python3-build python3-installer python3-setuptools_scm
+ python3-wheel python3-pybind11"
+makedepends="openssl-devel"
+short_desc="In-process SQL OLAP database management system"
+maintainer="icp <pangolin@vivaldi.net>"
+license="MIT"
+homepage="https://duckdb.org"
+changelog="https://github.com/duckdb/duckdb/releases"
+distfiles="https://github.com/duckdb/duckdb/archive/refs/tags/v${version}.tar.gz"
+checksum=04e472e646f5cadd0a3f877a143610674b0d2bcf9f4102203ac3c3d02f1c5f26
+
+case "${XBPS_TARGET_MACHINE}" in
+	x86_64*) configure_args+=" -DDUCKDB_EXPLICIT_PLATFORM=linux_amd64" ;;
+	aarch64*) configure_args+=" -DDUCKDB_EXPLICIT_PLATFORM=linux_arm64" ;;
+esac
+
+post_build() {
+	SETUPTOOLS_SCM_PRETEND_VERSION="${version}" python3 -m build \
+		--no-isolation --wheel tools/pythonpkg
+}
+
+post_install() {
+	python3 -m installer --destdir "${DESTDIR}" --no-compile-bytecode \
+		tools/pythonpkg/dist/duckdb-${version}-*-*-*.whl
+
+	rm "${DESTDIR}/usr/"{includes,sources}.list
+	rm -r "${DESTDIR}/usr/duckdb_build"
+
+	vlicense LICENSE
+}
+
+duckdb-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/cmake
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+	}
+}
+
+python3-duckdb_package() {
+	short_desc+=" - python bindings"
+	pkg_install() {
+		vmove "${py3_sitelib}"
+	}
+}
diff --git a/srcpkgs/python3-duckdb b/srcpkgs/python3-duckdb
new file mode 120000
index 00000000000000..3da59dfc722faf
--- /dev/null
+++ b/srcpkgs/python3-duckdb
@@ -0,0 +1 @@
+duckdb
\ No newline at end of file

  parent reply	other threads:[~2024-06-11 20:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-19  7:15 [PR PATCH] " icp1994
2024-03-19  8:13 ` [PR PATCH] [Updated] " icp1994
2024-03-22 16:12 ` [PR REVIEW] " leahneukirchen
2024-03-22 16:17 ` leahneukirchen
2024-03-22 16:55 ` [PR REVIEW] " icp1994
2024-06-11 20:01 ` icp1994 [this message]
2024-06-29 13:36 ` [PR PATCH] [Merged]: New package: duckdb-1.0.0 leahneukirchen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240611200101.C82082AE86@inbox.vuxu.org \
    --to=icp1994@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).