msedit-mod-git
LOW
maintainer MaxWagner
0 votes
scanned 2026-10-06 08:02:16.298752
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: Vladimir Maryasov <mx.wg@yandex.ru>
2
#
3
# Personal modification of Microsoft Edit (msedit) from the maryasov fork,
4
# branch `mk`. Tracks upstream + personal patches (e.g. Escape-to-exit).
5
#
6
# Build from source with: makepkg -si
7
# Or, once published to AUR: yay -S msedit-mod-git
8
9
_pkgbase=msedit
10
pkgname="$_pkgbase-mod-git"
11
pkgver=2.0.0.r505.gfd2e67a
12
pkgrel=1
13
pkgdesc="A simple editor for simple needs (Microsoft Edit) — maryasov modified build"
14
arch=('x86_64' 'aarch64')
15
url="https://github.com/maryasov/edit"
16
license=('MIT')
17
depends=('icu')
18
makedepends=('git' 'rust')
19
provides=("$_pkgbase")
20
conflicts=("$_pkgbase" "$_pkgbase-git")
21
source=("$_pkgbase::git+https://github.com/maryasov/edit.git#branch=mk")
22
sha256sums=('SKIP')
23
24
# pkgver: <cargo version>.r<commit count since root>.g<short sha>
25
pkgver() {
26
cd "$_pkgbase"
27
local ver
28
ver="$(sed -n 's/^version = "\(.*\)"$/\1/p' crates/edit/Cargo.toml | head -1)"
29
printf "%s.r%s.g%s" "$ver" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
30
}
31
32
prepare() {
33
cd "$_pkgbase"
34
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
35
}
36
37
build() {
38
cd "$_pkgbase"
39
export CARGO_TARGET_DIR=target
40
# Stable Rust build (no nightly-only -Zbuild-std). The project's
41
# [profile.release] in Cargo.toml already applies LTO + strip + opt-level=s.
42
cargo build --frozen --release
43
}
44
45
check() {
46
cd "$_pkgbase"
47
cargo test --frozen --release
48
}
49
50
package() {
51
cd "$_pkgbase"
52
53
# Binary (canonical alternative name `msedit`, per upstream README).
54
install -Dm755 "target/release/edit" "$pkgdir/usr/bin/$_pkgbase"
55
56
# Manpage (rewrite `edit` -> `msedit` in the title / synopsis / name lines).
57
install -d "$pkgdir/usr/share/man/man1"
58
sed -e 's/^\.TH EDIT 1/.TH MSEDIT 1/' \
59
-e 's/^edit \\- a simple text editor$/msedit \\- a simple text editor/' \
60
-e 's/^edit is a simple text editor/msedit is a simple text editor/' \
61
-e 's/\\fBedit\\fP/\\fBmsedit\\fP/g' \
62
assets/manpage/edit.1 > "$pkgdir/usr/share/man/man1/$_pkgbase.1"
63
64
# .desktop entry + SVG icon (so it shows up in app launchers).
65
install -d "$pkgdir/usr/share/applications"
66
sed -e "s/^Exec=edit %F/Exec=$_pkgbase %F/" \
67
-e "s/^Icon=edit/Icon=$_pkgbase/" \
68
assets/com.microsoft.edit.desktop \
69
> "$pkgdir/usr/share/applications/$_pkgbase.desktop"
70
install -Dm644 assets/edit.svg \
71
"$pkgdir/usr/share/icons/hicolor/scalable/apps/$_pkgbase.svg"
72
73
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgbase/LICENSE"
74
}
75
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-06 08:02:16 | Low | 1 |