diff --git a/projects/duckdb.org/package.yml b/projects/duckdb.org/package.yml new file mode 100644 index 00000000..d8e2df16 --- /dev/null +++ b/projects/duckdb.org/package.yml @@ -0,0 +1,48 @@ +distributable: + url: https://github.com/duckdb/duckdb/archive/refs/tags/v{{version}}.tar.gz + strip-components: 1 + +# if there’s a github then we can parse the versions +versions: + github: duckdb/duckdb/releases/tags + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + cmake.org: ^3 + working-directory: build + script: | + cmake .. + make --jobs {{ hw.concurrency }} + mkdir -p "{{prefix}}"/bin + mv duckdb "{{prefix}}"/bin + env: + ARGS: + - -DCMAKE_INSTALL_PREFIX="{{prefix}}" + - -DCMAKE_BUILD_TYPE=Release + - -DBUILD_ICU_EXTENSION=1 + - -DBUILD_JSON_EXTENSION=1 + - -DBUILD_PARQUET_EXTENSION=1 + +provides: + - bin/duckdb + # ^^ specify the binaries or tea magic won’t work + +test: + fixture: | + CREATE TABLE weather (temp INTEGER); + INSERT INTO weather (temp) VALUES (40), (45), (50); + SELECT AVG(temp) FROM weather; + script: | + out="$(duckdb < $FIXTURE)" + exp=$(cat <