hptnacp
LOW
maintainer Velamniro
1 votes
scanned 2026-08-31 11:45:21.822654
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: Velamniro <velamniro at proton dot me>
2
3
pkgname=hptnacp
4
_pkgname="hacPack-Tools/hacPackTools-NACP"
5
pkgver=1.03
6
_pkgver="1.36-r2"
7
pkgrel=1
8
pkgdesc="A tool for creating and viewing Nintendo Switch NACP files"
9
arch=('x86_64')
10
url="https://github.com/DarkMatterCore/hacPack/tree/master/hacPack-Tools/hacPackTools-NACP"
11
_url="https://github.com/DarkMatterCore/hacPack"
12
license=('GPL-2.0-only')
13
depends=('glibc' 'libgcc' 'libstdc++' 'tinyxml2')
14
source=(
15
"$pkgname-$pkgver.tar.gz::$_url/archive/refs/tags/v$_pkgver.tar.gz"
16
'fix-makefile.patch')
17
b2sums=('723b3e969615bf51b304fddf06623fe266b4cd873569d3a823f4a28c0822c530b03dbf598d3ed91531dc6b8f2bd090706bc3812feac1684616007aad60160b9d'
18
'5889d90cb1dcbfb72949adc857fa91a7062b282f4002ecd8fcc59bcc388324b21e56d2103ceb492994c600f7b50dc7fdf77d558b93e170f9535ea384e108b86d')
19
20
prepare() {
21
cd "hacPack-$_pkgver/$_pkgname"
22
23
# Get rid of windows code and make it use system tinyxml2 instead of the bundled one
24
sed -i 's/\r$//' Makefile
25
patch -Np4 -i "$srcdir/fix-makefile.patch"
26
27
# Use system tinyxml2 instead of the bundled one
28
sed -i 's|#include "tinyxml2/tinyxml2.h"|#include <tinyxml2.h>|' nacp.cpp
29
}
30
31
build() {
32
cd "hacPack-$_pkgver/$_pkgname"
33
make
34
}
35
36
package() {
37
cd "hacPack-$_pkgver"
38
39
install -Dm0755 "$_pkgname/hptnacp" -t "$pkgdir/usr/bin/"
40
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" # GPL
41
install -Dm644 "$_pkgname/README.md" -t "$pkgdir/usr/share/doc/$pkgname/"
42
}
43
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-31 11:45:21 | Low | 1 |