mailcraft-git
LOW
maintainer alerque
0 votes
scanned 2026-10-19 15:25:12.467407
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: Caleb Maclennan <caleb@alerque.com>
2
3
pkgname=mailcraft-git
4
_pkgname=${pkgname%-git}
5
pkgver=0.5.0.r3.gd33985a
6
pkgrel=1
7
url="https://github.com/UCS-Care-Group/$_pkgname"
8
pkgdesc='vibe coded clean-room reimplementation of Microsoft Outlook (Git HEAD)'
9
arch=(x86_64)
10
license=(MIT Apache-2.0)
11
depends=(glibc # libc.so libm.so
12
hicolor-icon-theme
13
libgcc)
14
makedepends=(cargo
15
git)
16
provides=("$_pkgname=$pkgver")
17
conflicts=("$_pkgname")
18
source=("git+$url.git")
19
sha256sums=('SKIP')
20
21
_srcenv() {
22
cd "$_pkgname"
23
export CARGO_HOME="$srcdir"
24
export CARGO_PROFILE_RELEASE_DEBUG=2
25
export CARGO_PROFILE_RELEASE_STRIP=false
26
export CARGO_PROFILE_RELEASE_LTO=thin
27
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
28
export CARGO_PROFILE_RELEASE_OPT_LEVEL=3
29
export CARGO_TARGET_DIR=target
30
export RUSTUP_TOOLCHAIN=stable
31
CFLAGS+=' -fno-lto'
32
}
33
34
_icons=(512 256 128 64 48 32 16)
35
36
prepare() {
37
_srcenv
38
cargo fetch --locked --target host-tuple
39
}
40
41
pkgver() {
42
cd "$_pkgname"
43
git describe --long --tags --abbrev=7 --match="v*" HEAD |
44
sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
45
}
46
47
build() {
48
_srcenv
49
cargo build --frozen --release
50
}
51
52
package() {
53
depends+=(libgcc_s.so)
54
cd "$_pkgname"
55
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$_pkgname"{,-cli}
56
install -Dm0644 -t "$pkgdir/usr/share/applications/" "packaging/linux/io.github.billsecond.$_pkgname.desktop"
57
install -Dm0644 -t "$pkgdir/usr/share/mime/packages/" "packaging/linux/io.github.billsecond.$_pkgname.mime.xml"
58
# install -Dm0644 -t "$pkgdir/usr/share/icons/hicolor/scalable/" assets/app-icon/hicolor/scalable/apps/io.github.billsecond.$_pkgname.svg
59
for s in ${_icons[@]}; do
60
local dim="${s}x${s}"
61
install -Dm0644 -t "$pkgdir/usr/share/icons/hicolor/$dim/apps/" assets/app-icon/hicolor/$dim/apps/io.github.billsecond.$_pkgname.png
62
done
63
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE-{APACHE,MIT}
64
}
65
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-19 15:25:12 | Low | 1 |