From e82062540063494df143e6e4ec53f9ab77277161 Mon Sep 17 00:00:00 2001 From: gesh Date: Thu, 2 May 2024 20:28:13 +0300 Subject: [PATCH] Cleanup Reorder to standard pkgver/prepare/build/check/package, remove redundant stack setup --- PKGBUILD | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 0dc3751d6d86..dbe2628461e1 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -20,22 +20,22 @@ pkgver() { git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } -check() { - cd "$pkgname" - - stack test -} build() { cd "$pkgname" - stack setup stack build \ --install-ghc \ --ghc-options='-fdiagnostics-color=always' \ --fast } +check() { + cd "$pkgname" + + stack test +} + package() { cd "$srcdir/$pkgname" stack install --local-bin-path "$pkgdir/usr/bin"