summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9062b1288690ea2a556c2950a0e66931b0811e8e (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
# Contributor: giga300 <giga300[at]protonmail[dot]com>
# Maintainer: giga300 <giga300[at]protonmail[dot]com>

pkgname=xci2nsp-git
_pkgname=dedbae
pkgver=1.0.0.1.r1.g87b08da
pkgrel=1
pkgdesc='XCI to NSP converter'
arch=('any')
url="https://gitlab.com/roothorick/dedbae"
license=('ISC')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://gitlab.com/roothorick/dedbae.git')
sha256sums=('SKIP')

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

build() {
	cd "$srcdir/${_pkgname}"
	git submodule update --init
	make
}

package() {
	cd "$srcdir/${_pkgname}"
	install -Dm755 "$srcdir/${_pkgname}/bin/${pkgname%-git}" "$pkgdir/usr/bin/${pkgname%-git}"
}