diff options
author | George Rawlinson | 2020-10-28 21:04:33 +1300 |
---|---|---|
committer | George Rawlinson | 2020-10-28 21:05:28 +1300 |
commit | bdae14be6281d243a18b9e935428376e7a53a1ba (patch) | |
tree | 5552e3a1aa6e655d3293a6529206caf44945f129 | |
download | aur-hactool.tar.gz |
addpkg: hactool 1.4.0-1
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 38 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9af9682d83a9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = hactool + pkgdesc = a tool to view information about common file formats for the Nintendo Switch + pkgver = 1.4.0 + pkgrel = 1 + url = https://github.com/SciresM/hactool + arch = x86_64 + license = ISC + source = hactool-1.4.0.tar.gz::https://github.com/SciresM/hactool/archive/1.4.0.tar.gz + b2sums = 8ab5a52c895fc295d342f1470a2c25a77b53c1b251683eae587d5930221f80228231d215ded99277d18951f616eb3a4bb95c45c08a98fe0e69d10bf5b4b0c05b + +pkgname = hactool + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..dc63ce975e3d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: George Rawlinson <george@rawlinson.net.nz> + +pkgname=hactool +pkgver=1.4.0 +pkgrel=1 +pkgdesc="A tool to view information about common file formats for the Nintendo Switch" +arch=(x86_64) +url="https://github.com/SciresM/hactool" +license=("ISC") +source=("$pkgname-$pkgver.tar.gz::https://github.com/SciresM/hactool/archive/$pkgver.tar.gz") +b2sums=('8ab5a52c895fc295d342f1470a2c25a77b53c1b251683eae587d5930221f80228231d215ded99277d18951f616eb3a4bb95c45c08a98fe0e69d10bf5b4b0c05b') + +prepare() { + cd "$pkgname-$pkgver" + cp config.mk.template config.mk +} + +build() { + cd "$pkgname-$pkgver" + make +} + +package() { + install -Dm755 -t "$pkgdir/usr/bin" "$pkgname-$pkgver/hactool" + install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" "$pkgname-$pkgver/LICENSE" +} |