thrapl-git
LOW
maintainer pyamsoft
0 votes
scanned 2026-10-21 05:30:25.801317
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
##
2
# Maintainer: pyamsoft <developer(dot)pyamsoft(at)gmail(dot)com>
3
##
4
5
_gitname=thrapl
6
# shellcheck disable=SC2034
7
pkgname=thrapl-git
8
# shellcheck disable=SC2034
9
pkgdesc="Easily adjust the PL2 (Turbo) wattage using the intel_rapl driver"
10
# shellcheck disable=SC2034
11
pkgver="0.0.1".r1.2b7da63
12
# shellcheck disable=SC2034
13
pkgrel=1
14
# shellcheck disable=SC2034
15
arch=('i686' 'x86_64')
16
# shellcheck disable=SC2034
17
makedepends=('git')
18
# shellcheck disable=SC2034
19
depends=('coreutils')
20
# shellcheck disable=SC2034
21
optdepends=()
22
# shellcheck disable=SC2034
23
provides=('thrapl')
24
# shellcheck disable=SC2034
25
conflicts=('thrapl')
26
# shellcheck disable=SC2034
27
license=('GPL2')
28
url="https://github.com/pyamsoft/thrapl.git"
29
30
##
31
# The SHA256 is constantly changing since this is
32
# pulled from git so skip the verification check
33
##
34
# shellcheck disable=SC2034
35
source=(
36
"${_gitname}::git+${url}#branch=main"
37
"00-fix-prefix.patch")
38
# shellcheck disable=SC2034
39
sha256sums=('SKIP'
40
'e5423df20c03ef19448a78a1ae39e630d90f63c6c4e0962296ad292665575f0d')
41
42
pkgver() {
43
# shellcheck disable=SC2154
44
cd "${srcdir}/${_gitname}" || {
45
msg "Failed to cd into ${srcdir}/${_gitname}"
46
return 1
47
}
48
49
printf "%s.r%s.%s" "$(awk -F '=' '{ if (/^readonly __VERSION=/) { print $2 } }' "${_gitname}")" \
50
"$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
51
}
52
53
prepare() {
54
# shellcheck disable=SC2154
55
cd "${srcdir}/${_gitname}" || {
56
msg "Failed to cd into ${srcdir}/${_gitname}"
57
return 1
58
}
59
60
# Apply patches
61
patch -p1 -i "${srcdir}/00-fix-prefix.patch"
62
63
# Disabled by default to conform to AUR packaging
64
# best practices. It is highly recommended that you
65
# enable the line to allow for editing the config.mk file
66
#
67
# make DESTDIR="${pkgdir}" edit
68
}
69
70
package() {
71
# shellcheck disable=SC2154
72
cd "${srcdir}/${_gitname}" || {
73
msg "Failed to cd into ${srcdir}/${_gitname}"
74
return 1
75
}
76
77
# shellcheck disable=SC2154
78
make DESTDIR="${pkgdir}" install
79
}
80
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-21 05:30:25 | Low | 1 |