summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b6b899d5781c55d30d8dd01d6adc93e50986d037 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: misson20000 <xenotoad at xenotoad dot n e t>
pkgname=hactool-git
pkgver=1.2.2.r4.g4d8d84d
pkgrel=1
pkgdesc="hactool is a tool to view information about, decrypt, and extract common file formats for the Nintendo Switch, especially Nintendo Content Archives."
arch=("any")
url="https://github.com/SciresM/hactool"
license=("ISC")
groups=("base-devel")
depends=("gcc")
makedepends=("git")
provides=("hactool")
source=("git+https://github.com/SciresM/hactool.git")
md5sums=("SKIP")

pkgver() {
	cd "$srcdir/hactool"
	git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$srcdir/hactool"
	cp config.mk.template config.mk
	make
}

package() {
	install -D -t "$pkgdir/usr/bin" "$srcdir/hactool/hactool"
}