1
0
mirror of https://github.com/moparisthebest/arch-ppa synced 2024-12-21 22:18:48 -05:00

add 4nxci-git

This commit is contained in:
Travis Burtrum 2019-11-30 20:57:37 -05:00
parent 60a3bb63c9
commit 1b86b02c70

33
src/4nxci-git/PKGBUILD Normal file
View File

@ -0,0 +1,33 @@
# Contributor: giga300 <giga300[at]protonmail[dot]com>
# Maintainer: giga300 <giga300[at]protonmail[dot]com>
pkgname=4nxci-git
_pkgname=4NXCI
pkgver=v4.03.r2.g33044e6
pkgrel=1
pkgdesc='4NXCI is a tool for converting XCI(NX Card Image) files to NSP'
arch=('any')
url="https://github.com/The-4n/4NXCI"
license=('ISC')
depends=('glibc')
makedepends=('git')
provides=("4nxci-bin")
conflicts=("4nxci-bin")
source=('git+https://github.com/The-4n/4NXCI.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${_pkgname}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/${_pkgname}"
cp config.mk.template config.mk
make
}
package() {
cd "$srcdir/${_pkgname}"
install -Dm755 "$srcdir/${_pkgname}/${pkgname%-git}" "$pkgdir/usr/bin/${pkgname%-git}"
}