diff options
author | Phil Ruffwind | 2017-09-15 00:37:12 -0400 |
---|---|---|
committer | Phil Ruffwind | 2017-09-15 00:37:15 -0400 |
commit | 7d2fb4a38f31f89cb65c5fc5b060effe5d6befda (patch) | |
tree | 2649ff929af723cec041b63ab5fe9cc9f20acd88 | |
parent | eade28ece4214aefb6de9c9c9c3ab2592abe16af (diff) | |
download | aur-7d2fb4a38f31f89cb65c5fc5b060effe5d6befda.tar.gz |
Add pkgver() for convenience
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Thu Sep 14 06:32:04 UTC 2017 +# Fri Sep 15 04:37:15 UTC 2017 pkgbase = ghc-pristine pkgdesc = Symlinks to GHC with only boot libs, useful for building static binaries pkgver = 8.0.2 @@ -17,6 +17,10 @@ depends=(ghc) # To use this package, you just need to configure cabal # --with-compiler=/usr/share/ghc-pristine/bin/ghc +pkgver() { + ghc --version | sed -n 's/^.*version \([0-9.]*\)/\1/p' +} + package() { prefix=/usr/share/ghc-pristine mkdir -p "$pkgdir$prefix/bin/" "$pkgdir$prefix/lib/package.conf.d/" |