hmcl-region-patch-auto
LOW
maintainer helloswx
0 votes
scanned 2026-10-21 11:31:16.199359
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: HelloSWX <i at helloswx dot top>
2
3
pkgname=hmcl-region-patch-auto
4
pkgver=1.0.1
5
pkgrel=1
6
pkgdesc="Alpm hook that patches the HMCL installed by the AUR, so that it no longer treats the machine as mainland China"
7
arch=('any')
8
url="https://github.com/xuanxuan1231/hmcl-region-patch"
9
license=('GPL-3.0-or-later')
10
install="$pkgname.install"
11
12
# The patcher itself is not shipped here, it comes from hmcl-region-patch: this package only
13
# contains the hook that runs it and the script that the hook calls.
14
depends=('hmcl-region-patch')
15
16
# The hook patches the archive of whichever of these packages is installed. They are listed here
17
# so that it is clear which ones are supported. None of them is required: the hook simply does
18
# nothing when no HMCL is installed at all. They cannot be put into depends, because pacman
19
# would install all of them, and "hmcl-dev-bin" does not even provide "hmcl".
20
optdepends=('hmcl: patch the HMCL of the package "hmcl"'
21
'hmcl-bin: patch the HMCL of the package "hmcl-bin"'
22
'hmcl-dev: patch the HMCL of the package "hmcl-dev"'
23
'hmcl-dev-bin: patch the HMCL of the package "hmcl-dev-bin"')
24
25
source=("hmcl-region-patch.hook"
26
"hmcl-region-patch-auto-hook")
27
sha256sums=('ba0b1d4573bebf847821359b7572d74a09d312f38fa51b1abb4c684cdf4156d0'
28
'4d62ab96bcda8a101240ae7f4a024fe9e52bad6ebdf5c887d102d9d023caa2f1')
29
30
package() {
31
# The hook that patches HMCL whenever it is installed or updated, and whenever the package
32
# of the patcher itself is installed or updated.
33
install -Dm644 "$srcdir/hmcl-region-patch.hook" \
34
"$pkgdir/usr/share/libalpm/hooks/hmcl-region-patch.hook"
35
36
# The script that the hook runs: it patches HMCL and then prints the hint. The hint itself
37
# is written in that script.
38
install -Dm755 "$srcdir/hmcl-region-patch-auto-hook" \
39
"$pkgdir/usr/bin/hmcl-region-patch-auto-hook"
40
41
# The directory that holds the backups and the state of the patched archives.
42
install -dm755 "$pkgdir/var/lib/hmcl-region-patch"
43
}
44
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-21 11:31:16 | Low | 1 |