tgrep-bin
LOW
maintainer czyt
0 votes
scanned 2026-09-08 09:16:51.245511
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
3
pkgname=tgrep-bin
4
pkgver=1.0.4
5
pkgrel=1
6
pkgdesc="Trigram-indexed grep with a client/server architecture for fast local regex search in large codebases"
7
arch=('x86_64' 'aarch64')
8
url="https://github.com/microsoft/tgrep"
9
license=('MIT')
10
makedepends=('libarchive')
11
provides=("tgrep=${pkgver}")
12
conflicts=('tgrep')
13
options=('!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"
17
source=("tgrep-${pkgver}-LICENSE::https://raw.githubusercontent.com/microsoft/tgrep/v${pkgver}/LICENSE")
18
source_x86_64=("${_archive_x86_64}::${url}/releases/download/v${pkgver}/${_archive_x86_64}")
19
source_aarch64=("${_archive_aarch64}::${url}/releases/download/v${pkgver}/${_archive_aarch64}")
20
sha256sums=('5baa259ffd1a975780869d7d2925212224c92206cefb96fb2bf0b146650e5029')
21
sha256sums_x86_64=('81fd408f619fc1a316ed0618b2d2062b463631bdfd71123050580293817074fb')
22
sha256sums_aarch64=('8df6ab6ab6d859c38df3c6ee39c39bab66165761371a46a325021dd3c25607fb')
23
noextract=("${_archive_x86_64}" "${_archive_aarch64}")
24
25
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-09-08 09:16:51 | Low | 1 |