diff options
author | kodemeister | 2021-10-10 21:32:08 +0600 |
---|---|---|
committer | kodemeister | 2021-10-10 21:32:08 +0600 |
commit | a1aa414bd978d3d5c578d9cd5d1e14fe44507f43 (patch) | |
tree | 9884b9f922ca79cf34c46ae5a46ef44c2caee799 /PKGBUILD | |
parent | a218861a0e01ac0b8f831da85073d041f36d0729 (diff) | |
download | aur-a1aa414bd978d3d5c578d9cd5d1e14fe44507f43.tar.gz |
Hardcode path to system GHC instead of relying to $PATH
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -3,7 +3,7 @@ _hkgname=ghcid pkgname=ghcid pkgver=0.8.7 -pkgrel=2 +pkgrel=3 pkgdesc="GHCi based bare bones IDE" arch=("x86_64") url="https://github.com/ndmitchell/ghcid" @@ -16,22 +16,22 @@ sha512sums=("69748c115db36d4b41dafdbbfaeedc80be3a3bdadf15b16386e36138193fcc8c89d build() { cd "$_hkgname-$pkgver" - runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + /usr/bin/runhaskell Setup configure -w /usr/bin/ghc -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \ --ghc-option=-pie - runhaskell Setup build $MAKEFLAGS - runhaskell Setup register --gen-script - runhaskell Setup unregister --gen-script + /usr/bin/runhaskell Setup build $MAKEFLAGS + /usr/bin/runhaskell Setup register --gen-script + /usr/bin/runhaskell Setup unregister --gen-script sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } check() { cd "$_hkgname-$pkgver" - runhaskell Setup test || echo "Tests failed" + /usr/bin/runhaskell Setup test || echo "Tests failed" } package() { @@ -39,7 +39,7 @@ package() { install -D -m744 register.sh "$pkgdir/usr/share/haskell/register/$pkgname.sh" install -D -m744 unregister.sh "$pkgdir/usr/share/haskell/unregister/$pkgname.sh" - runhaskell Setup copy --destdir="$pkgdir" + /usr/bin/runhaskell Setup copy --destdir="$pkgdir" install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" rm -f "$pkgdir/usr/share/doc/$pkgname/LICENSE" } |