hptnacp

LOW
maintainer Velamniro 1 votes scanned 2026-08-31 11:45:21.822654
View on AUR
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
3pkgname=hptnacp
4_pkgname="hacPack-Tools/hacPackTools-NACP"
5pkgver=1.03
6_pkgver="1.36-r2"
7pkgrel=1
8pkgdesc="A tool for creating and viewing Nintendo Switch NACP files"
9arch=('x86_64')
10url="https://github.com/DarkMatterCore/hacPack/tree/master/hacPack-Tools/hacPackTools-NACP"
11_url="https://github.com/DarkMatterCore/hacPack"
12license=('GPL-2.0-only')
13depends=('glibc' 'libgcc' 'libstdc++' 'tinyxml2')
14source=(
15 "$pkgname-$pkgver.tar.gz::$_url/archive/refs/tags/v$_pkgver.tar.gz"
16 'fix-makefile.patch')
17b2sums=('723b3e969615bf51b304fddf06623fe266b4cd873569d3a823f4a28c0822c530b03dbf598d3ed91531dc6b8f2bd090706bc3812feac1684616007aad60160b9d'
18 '5889d90cb1dcbfb72949adc857fa91a7062b282f4002ecd8fcc59bcc388324b21e56d2103ceb492994c600f7b50dc7fdf77d558b93e170f9535ea384e108b86d')
19
20prepare() {
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
31build() {
32 cd "hacPack-$_pkgver/$_pkgname"
33 make
34}
35
36package() {
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)SeverityRules
2026-08-31 11:45:21 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion