antsword
MEDIUM
maintainer ch4xer
0 votes
scanned 2026-08-30 19:44:01.063593
Why flagged
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
Triggered rules
Medium
Recently orphaned & re-adopted
orphaned_readopted
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
PKGBUILD
1
# This is an example PKGBUILD file. Use this as a start to creating your own,
2
# and remove these comments. For more information, see 'man PKGBUILD'.
3
# NOTE: Please fill out the license field for your package! If it is unknown,
4
# then please put 'unknown'.
5
6
pkgname=antsword
7
pkgver=2.1.14
8
pkgrel=2
9
pkgdesc="AntSword is a cross-platform webshell management toolkit."
10
arch=('any')
11
url="https://www.yuque.com/antswordproject"
12
license=('MIT')
13
depends=('electron4')
14
makedepends=('imagemagick' 'nodejs')
15
provides=('antsword')
16
options=('strip')
17
source=("https://github.com/AntSwordProject/$pkgname/archive/refs/tags/$pkgver.tar.gz"
18
"$pkgname-$pkgver.patch"
19
"$pkgname.desktop"
20
"$pkgname.png"
21
"$pkgname")
22
sha256sums=("1667e636b68ffde32b5faa76a40797a6efc63c78693e545598a44028b6a25b5b"
23
"e0fcdd7048910f3e8fbaa73996566e8781d161be196b1e68403d9ad2af6dc21d"
24
"f3cff3ac504b8ff4bd48c9086e49ae978b6f13a3a60dc80b4dfca584c6995f69"
25
"94894700d63d1c94f8e8d1fade1df936e1fee32d42f886ea32a6e6b29d40a866"
26
"977973b5628e6b7e12891049a13f0437013effa5b4e7c2de0fe56b4878add72b")
27
28
prepare() {
29
# Regulate package dir name
30
find . -depth -type d -iname "$pkgname-$pkgver" -exec mv {} "$pkgname-$pkgver" \;
31
32
cd "$pkgname-$pkgver"
33
# Patch out blacklist
34
patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
35
36
# Convet icons
37
local res
38
for res in 32x32 256x256; do
39
convert "$srcdir/$pkgname.png" -resize 512x512 "$srcdir/$res.png"
40
done
41
}
42
43
package() {
44
# Place files
45
install -d "$pkgdir/usr/lib"
46
cp -a "$srcdir/$pkgname-$pkgver" "$pkgdir/usr/lib/$pkgname"
47
48
# Place launcher script
49
install -Dm 755 "$srcdir/$pkgname" -t "$pkgdir/usr/bin"
50
51
# Place desktop entry and icon
52
desktop-file-install -m 644 --dir "$pkgdir/usr/share/applications" "$srcdir/$pkgname.desktop"
53
local res
54
for res in 32x32 256x256; do
55
install -DT "$srcdir/$res.png" "$pkgdir/usr/share/icons/hicolor/$res/apps/$pkgname.png"
56
done
57
}
58
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-30 19:44:01 | Medium | 1 |
| 2026-06-18 16:11:54 | Clean | 0 |