summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 5 insertions, 1 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7e0af5341ca6..04ccb399864e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index ff4a7ade9967..e621e05124bc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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/"