talimat 741 B

12345678910111213141516171819202122232425
  1. # Tanım: Elm dili geliştirme araçları
  2. # URL: http://elm-lang.org
  3. # Paketçi: milisarge
  4. # Gerekler: stack-static patchelf
  5. # Grup: geliştirme
  6. isim=elm-lang
  7. surum=0.19.0
  8. devir=1
  9. kaynak=(https://github.com/elm/compiler/archive/${surum}.tar.gz::elm-compiler-${surum}.tar.gz
  10. stack.yaml)
  11. derle() {
  12. cd "$SRC"
  13. ln -s /lib64/lib64/ld-linux-x86-64.so.2 /lib/
  14. ln -sf compiler-${surum} elm-compiler
  15. mkdir -p .stack
  16. stack setup --stack-root "$PWD/.stack"
  17. stack build --stack-root "$PWD/.stack"
  18. binpath="$(stack path --local-install-root)/bin"
  19. patchelf --shrink-rpath "$binpath/elm"
  20. install -Dm755 "$binpath/elm" "$PKG/usr/bin/elm"
  21. install -Dm644 "elm-compiler/LICENSE" "$PKG/usr/share/licenses/elm-platform/LICENSE"
  22. }