summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a0cb44fcdeea76de31f69781dc4b03950f5c48e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: Jonas Costa <contact@jonascosta.ch>
pkgname=filediver
_pkgver='v0.3.1'
pkgver=0.3.1
pkgrel=1
pkgdesc='An unofficial Helldivers 2 game asset extractor'
source=("git+https://github.com/xypwn/filediver.git#tag=${_pkgver}")
arch=('x86_64')
sha512sums=('SKIP')
url='https://github.com/xypwn/filediver'
license=('BSD-3')
makedepends=('go')

build() {
	cd "${srcdir}/${pkgname}"
	GOCACHE="${srcdir}/cache" go build './cmd/filediver-cli'
}

package() {
	install -Dm755 "${pkgname}/${pkgname}-cli" "${pkgdir}/usr/bin/${pkgname}"
	install -Dm644 "${pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}