blob: 93cc43f384aaeafcf03d75cd895145e824543e4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Maintainer: AlphaJack <alphajack at tuta dot io>
# Contributor: George Rawlinson <grawlinson@archlinux.org>
pkgbase="duckdb"
pkgname=(
"duckdb"
"python-duckdb"
)
pkgver=1.1.2
pkgrel=1
pkgdesc="An in-process SQL OLAP database management system"
arch=("x86_64" "aarch64")
url="https://duckdb.org"
license=("MIT")
depends=(
"gcc-libs"
"openssl"
)
makedepends=(
"git"
"cmake"
"python-setuptools"
"pybind11"
"python-numpy"
"python-pandas"
"libutf8proc"
"python-pip"
"python-wheel"
"python-setuptools-scm"
)
source=("$pkgbase-$pkgver.tar.gz::https://github.com/duckdb/duckdb/archive/refs/tags/v$pkgver.tar.gz")
b2sums=('f847fc78b871f32420e9aab8e714bad8a55273428d83d94b8f02274b5b50e3fe72f9ec63f9e460734eff1890ae5f0316ff40ff2b7039b881ad0dda5d32af4e8f')
prepare() {
cmake \
-S "$pkgbase-$pkgver" \
-B build \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=/usr
}
build() {
cmake --build build
python "$pkgbase-$pkgver/tools/pythonpkg/setup.py" build
}
package_duckdb() {
conflicts=("duckdb-git")
DESTDIR="$pkgdir" cmake --install build
# sqlite wrapper
install -vDm755 -t "$pkgdir/usr/lib" build/tools/sqlite3_api_wrapper/libsqlite3_api_wrapper.so
# license
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgbase" "$pkgbase-$pkgver/LICENSE"
}
package_python-duckdb() {
pkgdesc+=" (Python API)"
depends=(
"python"
"gcc-libs"
)
optdepends=(
"python-numpy"
"python-pandas"
)
conflicts=("python-duckdb-git")
# library
python "$pkgbase-$pkgver/tools/pythonpkg/setup.py" install --root="$pkgdir" --optimize=1 --skip-build
# license
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" "$pkgbase-$pkgver/LICENSE"
# remove cruft
rm -rf "$pkgdir/usr/duckdb" "$pkgdir/usr/duckdb_build" "$pkgdir/usr/"*.list
}
|