ramcleaner
LOW
maintainer eserlxl
0 votes
scanned 2026-10-20 17:28:05.182546
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
# Copyright © 2026 Eser KUBALI <eserlxl@gmail.com>
2
# SPDX-License-Identifier: GPL-3.0-or-later
3
#
4
# This file is part of ramcleaner and is licensed under
5
# the GNU General Public License v3.0 or later.
6
# See the LICENSE file in the project root for details.
7
8
# Maintainer: Eser KUBALI <eserlxl@gmail.com>
9
10
pkgname=ramcleaner
11
pkgver=0.1.0
12
pkgrel=1
13
pkgdesc='Find processes holding unused memory, attribute them to their owner, and stop them only after approval'
14
arch=('any')
15
url='https://github.com/eserlxl/ramCleaner'
16
license=('GPL-3.0-or-later')
17
validpgpkeys=('2B0541BF62E91D538C55739DF677BC1E3BD7246E')
18
depends=('python>=3.11')
19
makedepends=('git')
20
optdepends=('libnotify: Stop/Later/Hide desktop notifications for ramcleaner watch' 'zenity: Hide duration menu for ramcleaner watch')
21
install='ramcleaner.install'
22
source=("$pkgname::git+$url.git#tag=v$pkgver?signed")
23
b2sums=('SKIP')
24
25
build() {
26
cd "$srcdir/$pkgname"
27
# No build steps required
28
:
29
}
30
31
check() {
32
cd "$srcdir/$pkgname"
33
make test
34
}
35
# Helper function to copy and rebase paths with optional exclusions
36
copy_tree() {
37
local src="$1" destbase="$2" mode="$3"
38
shift 3
39
[[ -d "$src" ]] || return 0
40
41
local abs_src
42
abs_src="$(realpath "$src" 2>/dev/null)" || return 0
43
44
# Patterns stay find arguments so install-YAML metacharacters are not executed.
45
local -a find_cmd=(find "$abs_src" -maxdepth 5 -type f)
46
local exclude
47
for exclude in "$@"; do
48
# Trim whitespace
49
exclude="${exclude#"${exclude%%[! ]*}"}"
50
exclude="${exclude%"${exclude##*[! ]}"}"
51
if [[ -n "$exclude" ]]; then
52
find_cmd+=(-not -path "$abs_src/$exclude/*")
53
fi
54
done
55
find_cmd+=(-print0)
56
57
mapfile -d '' -t files < <("${find_cmd[@]}") || return 0
58
59
for file in "${files[@]}"; do
60
local relpath
61
relpath="$(realpath --relative-to="$abs_src" "$file")"
62
install -Dm"$mode" "$file" "$pkgdir/$destbase/$relpath"
63
done
64
}
65
66
package() {
67
cd "$srcdir/$pkgname"
68
# Install license file
69
for name in LICENSE LICENSE.txt COPYING; do
70
[[ -f "$name" ]] && install -Dm644 "$name" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" && break
71
done
72
73
# Copy sections based on configuration
74
# Install Make build artifacts
75
make install DESTDIR="$pkgdir" PREFIX=/usr
76
python -m compileall -q -o 0 -o 1 -d /usr/lib/ramcleaner "$pkgdir/usr/lib/ramcleaner"
77
}
78
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-20 17:28:05 | Low | 1 |