Created
January 17, 2018 19:24
-
-
Save PedroHLC/411211e5af1ca1508897a89e0436bae2 to your computer and use it in GitHub Desktop.
elm-make-0.19 PKGBUILD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library-vanilla: False | |
shared: True | |
executable-dynamic: True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on Lukas Werling elm-platform PKGBUILD | |
pkgname=elm-make-0.19 | |
pkgver=0.19.0 | |
pkgrel=0 | |
pkgdesc="Elm language compiler 0.19." | |
arch=('x86_64') | |
url="http://elm-lang.org" | |
license=('BSD3') | |
depends=('gmp' 'zlib') | |
makedepends=('ghc' 'cabal-install' 'patchelf') | |
conflicts=('nodejs-elm') | |
source=( | |
elm-compiler::git+https://github.com/elm-lang/elm-compiler.git#branch=dev | |
elm-package::git+https://github.com/elm-lang/elm-package.git#branch=master | |
elm-make::git+https://github.com/elm-lang/elm-make.git#branch=master | |
cabal.config | |
) | |
sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP') | |
binpath=".cabal-sandbox/bin" | |
repos=(elm-compiler elm-package elm-make) | |
make_="install -j --allow-newer" | |
install_deps_="${make_} --only-dependencies --ghc-options=\"-w\"" | |
build() { | |
cd "$srcdir" | |
cabal update | |
cabal sandbox init | |
cabal sandbox add-source ${repos[@]} | |
cabal $install_deps_ elm-make | |
cabal $make_ --disable-executable-dynamic elm-make | |
patchelf --shrink-rpath "$binpath/elm-make" | |
} | |
package() { | |
cd "$srcdir" | |
install -Dm755 "$binpath/elm-make" "$pkgdir/usr/bin/elm-make-0.19" | |
install -Dm644 "elm-compiler/LICENSE" "$pkgdir/usr/share/licenses/elm-platform/make-git-LICENSE" | |
} | |
# vim:set ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment