dearsql-git

LOW
maintainer k4zoku 0 votes scanned 2026-08-25 11:26:09.289924
View on AUR
Why flagged

The package builds from the project's own git repository and uses vcpkg as a submodule with pinned commits; downloads are from trusted GitHub domains, and no untrusted executable code is pulled or executed.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Low AI review llm_review

An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 95%): The package builds from the project's own git repository and uses vcpkg as a submodule with pinned commits; downloads are from trusted GitHub domains, and no untrusted executable code is pulled or executed.

PKGBUILD

1# Maintainer: Kazoku <k4zoku@pm.me>
2
3_pkgbase=dearsql
4_vcpkg_commit=77df67cfff9c12ccfdb52284e07c87c75092f723
5_mongo_patch_commit=bd93b56711a393a3c498991e023f94b7542832bb
6pkgname=${_pkgbase}-git
7pkgver=0.4.14.r0.g1bc158f
8pkgrel=1
9pkgdesc="Cross-platform SQL database client (git version)"
10arch=('x86_64')
11url="https://github.com/dunkbing/dearsql"
12license=('FSL')
13depends=('freetds' 'gtk4' 'libepoxy' 'libx11')
14makedepends=(
15 'autoconf'
16 'autoconf-archive'
17 'automake'
18 'cmake'
19 'curl'
20 'git'
21 'gnutls'
22 'krb5'
23 'libltdl'
24 'libtirpc'
25 'ninja'
26 'pkgconf'
27 'python'
28)
29provides=("${_pkgbase}")
30conflicts=("${_pkgbase}")
31options=('!lto' '!debug')
32source=(
33 "${_pkgbase}::git+${url}.git"
34 "vcpkg-${_vcpkg_commit}.tar.gz::https://github.com/microsoft/vcpkg/archive/${_vcpkg_commit}.tar.gz"
35 "mongo-cmake-4.4.patch::https://raw.githubusercontent.com/microsoft/vcpkg/${_mongo_patch_commit}/ports/mongo-c-driver/cmake-4.4.patch"
36)
37sha256sums=('SKIP'
38 '0edebdc4f04b88ec608b1a35bff67132d4686e4059bb06a528c2664a5436937e'
39 '138092b6f9a01ea46325fa55813350578719cf901c56e69166d7466ef2d03d84')
40
41pkgver() {
42 cd "${_pkgbase}"
43 git describe --long --tags | sed 's/^v//;s/_/./;s/\([^-]*-g\)/r\1/;s/-/./g'
44}
45
46prepare() {
47 git -C "${_pkgbase}" submodule update --init --recursive
48 if [[ -d "vcpkg-${_vcpkg_commit}" ]]; then
49 rm -rf vcpkg
50 mv "vcpkg-${_vcpkg_commit}" vcpkg
51 fi
52 sed -i '/"builtin-baseline":/d' "${_pkgbase}/vcpkg.json"
53 rm -rf vcpkg-overlay
54 mkdir -p vcpkg-overlay/mongo-c-driver
55 cp -a vcpkg/ports/mongo-c-driver/. vcpkg-overlay/mongo-c-driver/
56 cp "$srcdir/mongo-cmake-4.4.patch" \
57 vcpkg/ports/mongo-c-driver/
58 cp "$srcdir/mongo-cmake-4.4.patch" \
59 vcpkg-overlay/mongo-c-driver/
60 sed -i \
61 '/remove_abs_patch.cmake/a\ mongo-cmake-4.4.patch' \
62 vcpkg-overlay/mongo-c-driver/portfile.cmake
63
64 ./vcpkg/bootstrap-vcpkg.sh -disableMetrics
65}
66build() {
67 export VCPKG_ROOT="$srcdir/vcpkg"
68 export VCPKG_BUILD_TYPE=release
69 export VCPKG_DISABLE_METRICS=1
70 export VCPKG_DOWNLOADS="$srcdir/vcpkg-downloads"
71 export CFLAGS="${CFLAGS} -Wno-error=override-init"
72
73 cmake -S "${srcdir}/${_pkgbase}" -B "${srcdir}/build" \
74 -G Ninja \
75 -DCMAKE_BUILD_TYPE=Release \
76 -DCMAKE_INSTALL_PREFIX=/usr \
77 -DVCPKG_BUILD_TYPE=release \
78 -DVCPKG_TARGET_TRIPLET=x64-linux \
79 -DVCPKG_OVERLAY_PORTS="${srcdir}/vcpkg-overlay" \
80 -DVCPKG_OVERLAY_TRIPLETS="${srcdir}/${_pkgbase}/cmake/triplets"
81 cmake --build "${srcdir}/build" --target "${_pkgbase}"
82}
83
84package() {
85 DESTDIR="${pkgdir}" cmake --install "${srcdir}/build" --prefix /usr
86 install -Dm644 "${srcdir}/${_pkgbase}/LICENSE" \
87 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
88}
89

Scan history

Scanned at (UTC)SeverityRules
2026-08-25 11:26:09 Low 2
2026-08-25 09:25:51 Low 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion