Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
Reorder to standard pkgver/prepare/build/check/package, remove redundant
stack setup
  • Loading branch information
hseg committed May 2, 2024
1 parent b3b771c commit e820625
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e820625

Please sign in to comment.