diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..cf07c9b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Gabriel Jensen +pkgname=agbsum +pkgver=0.0.0 +pkgrel=1 +pkgdesc="GBA ROM header checksum patcher." +arch=("any") +url="https://mandelbrot.dk/${pkgname}" +makedepends=("cmake" "git" "susinfo" "zap") +source=("git+https://mandelbrot.dk/${pkgname}") +license=("AGPL3") +sha512sums=("SKIP") +pkgver() { + cd "${srcdir}/${pkgname}" + printf "%s.0.0" "$((0x$(git describe --abbrev=0)))" +} +build() { + cd "${srcdir}/${pkgname}" + cmake -Bbuild -DCMAKE_BUILD_TYPE="Release" -DCMAKE_GENERATOR="Unix Makefiles" + make -Cbuild -j$(($(nproc) + 0x1)) +} +package() { + cd "${srcdir}/${pkgname}" + mkdir -pm755 "${pkgdir}/usr/bin" + install -m755 "build/agbsum/agbsum" "${pkgdir}/usr/bin" +} |