summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: 744626a0425718d40dda437a25cf5a54157f2725 (plain) (blame)
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
# Maintainer: Gabriel Jensen
pkgname=agbsum
pkgver=0.0.0
pkgrel=1
pkgdesc="GBA ROM header checksum patcher."
arch=("any")
url="https://mandelbrot.dk/agbsum"
makedepends=("cmake" "git")
source=("git+https://mandelbrot.dk/agbsum")
license=("AGPL3")
sha512sums=("SKIP")
pkgver() {
	cd "${srcdir}/${pkgname}"
	printf "%s" "$(($(git describe --abbrev=0)))"
}
build() {
	cd "${srcdir}/${pkgname}"
	cmake -Bbuild -DCMAKE_BUILD_TYPE=Release
	cmake --build build
}
package() {
	cd "${srcdir}/${pkgname}"
	mkdir -pm755 "${pkgdir}/usr/bin"
	install -m755 "build/agbsum/agbsum" "${pkgdir}/usr/bin"
}