diff options
author | Andrew Simmons | 2023-07-08 16:30:55 -0400 |
---|---|---|
committer | Andrew Simmons | 2023-07-08 16:30:55 -0400 |
commit | bfbd816359f63d5607b34b15d367d72ec596344c (patch) | |
tree | 00b6726d198c625b4c741c8a93f822b786708170 | |
download | aur-bfbd816359f63d5607b34b15d367d72ec596344c.tar.gz |
Initial release
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 31 |
3 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c813f61ebd23 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = nstool + pkgdesc = General purpose read/extract tool for Nintendo Switch file formats. + pkgver = 1.7.0 + pkgrel = 1 + url = https://github.com/jakcron/nstool + arch = x86_64 + arch = i686 + license = MIT + makedepends = git + source = git+https://github.com/jakcron/nstool.git#tag=v1.7.0-r2 + md5sums = SKIP + +pkgname = nstool diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..fb476c40885a --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +* +!.gitignore +!PKGBUILD +!*.install +!*.sysusers +!.SRCINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7b8aef9e6c6c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Andrew Simmons <agsimmons0 at gmail dot com> + +pkgname=nstool +pkgver='1.7.0' +_pkgvermod='-r2' +pkgrel=1 +pkgdesc="General purpose read/extract tool for Nintendo Switch file formats." +arch=('x86_64' 'i686') +url="https://github.com/jakcron/nstool" +license=('MIT') +makedepends=('git') +source=("git+https://github.com/jakcron/nstool.git#tag=v${pkgver}${_pkgvermod}") +md5sums=('SKIP') + +prepare() { + cd "$srcdir/${pkgname}" + git submodule init + git submodule update +} + +build() { + cd "$srcdir/${pkgname}" + make deps + make +} + +package() { + cd "$srcdir/${pkgname}" + mkdir -p "$pkgdir/usr/bin" + cp "./bin/nstool" "$pkgdir/usr/bin" +} |