tgrep-bin

LOW
maintainer czyt 0 votes scanned 2026-09-08 09:16:51.245511
View on AUR
Why flagged

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

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.

PKGBUILD

1# Maintainer: czyt <czytcn@gmail.com>
2
3pkgname=tgrep-bin
4pkgver=1.0.4
5pkgrel=1
6pkgdesc="Trigram-indexed grep with a client/server architecture for fast local regex search in large codebases"
7arch=('x86_64' 'aarch64')
8url="https://github.com/microsoft/tgrep"
9license=('MIT')
10makedepends=('libarchive')
11provides=("tgrep=${pkgver}")
12conflicts=('tgrep')
13options=('!strip' '!debug')
14
15_archive_x86_64="tgrep-v${pkgver}-x86_64-unknown-linux-musl.tar.gz"
16_archive_aarch64="tgrep-v${pkgver}-aarch64-unknown-linux-musl.tar.gz"
17source=("tgrep-${pkgver}-LICENSE::https://raw.githubusercontent.com/microsoft/tgrep/v${pkgver}/LICENSE")
18source_x86_64=("${_archive_x86_64}::${url}/releases/download/v${pkgver}/${_archive_x86_64}")
19source_aarch64=("${_archive_aarch64}::${url}/releases/download/v${pkgver}/${_archive_aarch64}")
20sha256sums=('5baa259ffd1a975780869d7d2925212224c92206cefb96fb2bf0b146650e5029')
21sha256sums_x86_64=('81fd408f619fc1a316ed0618b2d2062b463631bdfd71123050580293817074fb')
22sha256sums_aarch64=('8df6ab6ab6d859c38df3c6ee39c39bab66165761371a46a325021dd3c25607fb')
23noextract=("${_archive_x86_64}" "${_archive_aarch64}")
24
25package() {
26 local archive_var="_archive_${CARCH}"
27 local archive="${!archive_var}"
28 install -dm755 "${pkgdir}/usr/bin" "${pkgdir}/usr/share/doc/${pkgname}"
29 bsdtar -xOf "${srcdir}/${archive}" ./tgrep > "${pkgdir}/usr/bin/tgrep" || return 1
30 chmod 755 "${pkgdir}/usr/bin/tgrep"
31 bsdtar -xOf "${srcdir}/${archive}" ./README.md > "${pkgdir}/usr/share/doc/${pkgname}/README.md" || return 1
32 chmod 644 "${pkgdir}/usr/share/doc/${pkgname}/README.md"
33 install -Dm644 "${srcdir}/tgrep-${pkgver}-LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
34}
35

Scan history

Scanned at (UTC)SeverityRules
2026-09-08 09:16:51 Low 1

Report a package

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

0 / 4000
Your suggestion