essentials-unpackd-git
LOW
maintainer yorukai
0 votes
scanned 2026-09-28 13:20:45.422575
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: Yorukai <33402703+yorukai@users.noreply.github.com>
2
3
pkgname=essentials-unpackd-git
4
_pkgname=Essentials-Unpackd
5
pkgver=3.0.0.r111.g9463b51
6
pkgrel=1
7
pkgdesc="Tool for unpacking and repacking Pokémon Essentials data files"
8
arch=('any')
9
url="https://github.com/ra101/Essentials-Unpackd"
10
license=('MIT')
11
12
depends=('ruby' 'ruby-bundler')
13
makedepends=('git')
14
15
provides=('essentials-unpackd')
16
conflicts=('essentials-unpackd')
17
18
source=("git+https://github.com/ra101/Essentials-Unpackd.git")
19
sha256sums=('SKIP')
20
21
pkgver() {
22
cd "$_pkgname"
23
24
printf '%s.r%s.g%s\n' \
25
"$(ruby -Ilib -e 'require "unpackd/version"; puts Unpackd::VERSION')" \
26
"$(git rev-list --count HEAD)" \
27
"$(git rev-parse --short HEAD)"
28
}
29
30
prepare() {
31
cd "$_pkgname"
32
33
bundle config set --local path vendor/bundle
34
bundle config set --local without 'development'
35
}
36
37
build() {
38
cd "$_pkgname"
39
40
bundle install --jobs "$(nproc)"
41
}
42
43
package() {
44
cd "$_pkgname"
45
46
install -dm755 "$pkgdir/usr/share/$pkgname"
47
cp -a . "$pkgdir/usr/share/$pkgname/"
48
49
rm -rf "$pkgdir/usr/share/$pkgname/.git"
50
rm -f "$pkgdir/usr/share/$pkgname/.bundle/config"
51
52
install -dm755 "$pkgdir/usr/bin"
53
54
cat > "$pkgdir/usr/bin/essentials-unpackd" <<'EOF'
55
#!/bin/sh
56
exec ruby -rbundler/setup \
57
-I/usr/share/essentials-unpackd-git/lib \
58
/usr/share/essentials-unpackd-git/bin/unpackd "$@"
59
EOF
60
61
chmod 755 "$pkgdir/usr/bin/essentials-unpackd"
62
63
if [[ -f LICENSE ]]; then
64
install -Dm644 LICENSE \
65
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
66
fi
67
}
68
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-28 13:20:45 | Low | 1 |