summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8be366b7466aaf5b0a51f030ffabd29ae7d5a2ab (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
30
31
32
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}"
}