thrapl-git

LOW
maintainer pyamsoft 0 votes scanned 2026-10-21 05:30:25.801317
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##
2# Maintainer: pyamsoft <developer(dot)pyamsoft(at)gmail(dot)com>
3##
4
5_gitname=thrapl
6# shellcheck disable=SC2034
7pkgname=thrapl-git
8# shellcheck disable=SC2034
9pkgdesc="Easily adjust the PL2 (Turbo) wattage using the intel_rapl driver"
10# shellcheck disable=SC2034
11pkgver="0.0.1".r1.2b7da63
12# shellcheck disable=SC2034
13pkgrel=1
14# shellcheck disable=SC2034
15arch=('i686' 'x86_64')
16# shellcheck disable=SC2034
17makedepends=('git')
18# shellcheck disable=SC2034
19depends=('coreutils')
20# shellcheck disable=SC2034
21optdepends=()
22# shellcheck disable=SC2034
23provides=('thrapl')
24# shellcheck disable=SC2034
25conflicts=('thrapl')
26# shellcheck disable=SC2034
27license=('GPL2')
28url="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
35source=(
36 "${_gitname}::git+${url}#branch=main"
37 "00-fix-prefix.patch")
38# shellcheck disable=SC2034
39sha256sums=('SKIP'
40 'e5423df20c03ef19448a78a1ae39e630d90f63c6c4e0962296ad292665575f0d')
41
42pkgver() {
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
53prepare() {
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
70package() {
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)SeverityRules
2026-10-21 05:30:25 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