diff options
-rw-r--r-- | PKGBUILD | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -1,6 +1,6 @@ # Maintainer: Gabriel Jensen pkgname=agbsum -pkgver=0.0.0 +pkgver=11 pkgrel=1 pkgdesc="GBA ROM header checksum patcher." arch=("any") @@ -10,17 +10,15 @@ source=("git+https://mandelbrot.dk/agbsum") license=("AGPL3") sha512sums=("SKIP") pkgver() { - cd "${srcdir}/${pkgname}" - printf "%s" "$(($(git describe --abbrev=0)))" + cd "${srcdir}/agbsum" + printf "%s" "$(git describe --abbrev=0)" } build() { - cd "${srcdir}/${pkgname}" - cmake -Bbuild -DCMAKE_BUILD_TYPE=Release - cmake --build build + cd "${srcdir}/agbsum" + make -j$(($(nproc)+0x1)) } package() { - cd "${srcdir}/${pkgname}" - mkdir -pm755 "${pkgdir}/usr/bin" - install -m755 "build/agbsum/agbsum" "${pkgdir}/usr/bin" + cd "${srcdir}/agbsum" + make install BINDIR="${pkgdir}/usr/bin" } |