summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO71
-rw-r--r--PKGBUILD133
2 files changed, 50 insertions, 154 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a14867b540f8..1230fcd7aa37 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,81 +1,22 @@
-# Generated by mksrcinfo v8
-# Tue Nov 9 15:24:26 UTC 2021
pkgbase = ghc8.2-bin
- pkgdesc = Legacy binary GHC 8.2 installed as /usr/bin/ghc-8.2 (Jul/2017).
+ pkgdesc = Binary GHC 8.2 installed on /usr/bin/ghc-8.2
pkgver = 8.2.2
- pkgrel = 2
+ pkgrel = 3
url = http://www.haskell.org/ghc/
install = ghc.install
- arch = i686
arch = x86_64
- license = custom
- checkdepends = python2
+ license = BSD-3-Clause
makedepends = ghc
makedepends = libxslt
makedepends = docbook-xsl
- makedepends = ncurses5-compat-libs
depends = gcc
depends = gmp
depends = libffi
depends = perl
+ depends = ncurses5-compat-libs
provides = ghc8.2
- provides = haskell-array=0.5.2.0
- provides = haskell-base=4.10.1.0
- provides = haskell-binary=0.8.5.1
- provides = haskell-bytestring=0.10.8.2
- provides = haskell-containers=0.5.10.2
- provides = haskell-deepseq=1.4.3.0
- provides = haskell-directory=1.3.0.2
- provides = haskell-filepath=1.4.1.2
- provides = haskell-ghc-boot=8.2.2
- provides = haskell-ghc-boot-th=8.2.2
- provides = haskell-ghc-compact=0.1.0.0
- provides = haskell-ghc-prim=0.5.1.1
- provides = haskell-haskeline=0.7.4.0
- provides = haskell-hoopl=3.10.2.2
- provides = haskell-hpc=0.6.0.3
- provides = haskell-integer-gmp=1.0.1.0
- provides = haskell-pretty=1.1.3.3
- provides = haskell-process=1.6.1.0
- provides = haskell-template-haskell=2.12.0.0
- provides = haskell-terminfo=0.4.1.0
- provides = haskell-time=1.8.0.2
- provides = haskell-transformers=0.5.2.0
- provides = haskell-unix=2.7.2.2
- provides = haskell-xhtml=3000.2.2
- provides = haskell-cabal=2.0.1.0
conflicts = ghc8.2
- replaces = haskell-array
- replaces = haskell-base
- replaces = haskell-binary
- replaces = haskell-bytestring
- replaces = haskell-containers
- replaces = haskell-deepseq
- replaces = haskell-directory
- replaces = haskell-filepath
- replaces = haskell-ghc-boot
- replaces = haskell-ghc-boot-th
- replaces = haskell-ghc-compact
- replaces = haskell-ghc-prim
- replaces = haskell-haskeline
- replaces = haskell-hoopl
- replaces = haskell-hpc
- replaces = haskell-integer-gmp
- replaces = haskell-pretty
- replaces = haskell-process
- replaces = haskell-template-haskell
- replaces = haskell-terminfo
- replaces = haskell-time
- replaces = haskell-transformers
- replaces = haskell-unix
- replaces = haskell-xhtml
- replaces = haskell-cabal
- noextract = ghc-8.2.2--deb8-linux.tar.xz
- options = staticlibs
- source_i686 = https://www.haskell.org/ghc/dist/8.2.2/ghc-8.2.2-i386-deb8-linux.tar.xz
- md5sums_i686 = 0a448cc881b7b4483423cfc65063573a
- source_x86_64 = https://www.haskell.org/ghc/dist/8.2.2/ghc-8.2.2-x86_64-deb8-linux.tar.xz
- md5sums_x86_64 = 2a2a867da5fd0ea9ba6508932b3ae09d
+ source = https://www.haskell.org/ghc/dist/8.2.2/ghc-8.2.2-x86_64-deb8-linux.tar.xz
+ sha256sums = 48e205c62b9dc1ccf6739a4bc15a71e56dde2f891a9d786a1b115f0286111b2a
pkgname = ghc8.2-bin
-
diff --git a/PKGBUILD b/PKGBUILD
index e3da818a61b4..8ec8eba66a70 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,93 +1,48 @@
# Maintainer: Rudy Matela <rudy@matela.com.br>
#
-# The provides list was taken from the Arch Linux package for ghc-8.2.2:
+# Contributor: Rudy Matela <rudy@matela.com.br>
#
-# https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/ghc&id=8dddaaf3736499eeaada061bb1af7ec60794078a
-# https://git.archlinux.org/svntogit/community.git/plain/trunk/PKGBUILD?h=packages/ghc&id=8dddaaf3736499eeaada061bb1af7ec60794078a
+#
+# This package can coexist with the latest version of GHC provided in the
+# standard Arch Linux repositories. This package is useful for:
+#
+# * testing for forwards/backwards compatibility this specific GHC branch;
+# * compiling programs that only work with this specific GHC branch;
+# * as a dependency to packages that can only be compiled with this branch.
+#
+# If you would like to compile GHC yourself,
+# you can use this package to bootstrap compilation.
+#
+#
+# https://ghc.gitlab.haskell.org/ghc/doc/users_guide/intro.html#ghc-version-numbering-policy
+# https://www.haskell.org/ghc/download.html
+# https://www.haskell.org/ghc/download_ghc_8_2_2.html
+
pkgname=ghc8.2-bin
pkgver=8.2.2
-pkgrel=2
-pkgdesc='Legacy binary GHC 8.2 installed as /usr/bin/ghc-8.2 (Jul/2017).'
-arch=('i686' 'x86_64')
+pkgrel=3
+_ver_branch=8.2
+pkgdesc="Binary GHC ${_ver_branch} installed on /usr/bin/ghc-${_ver_branch}"
+arch=('x86_64')
url='http://www.haskell.org/ghc/'
-license=('custom')
-depends=('gcc' 'gmp' 'libffi' 'perl')
-makedepends=('ghc' 'libxslt' 'docbook-xsl' 'ncurses5-compat-libs')
-checkdepends=('python2')
+license=('BSD-3-Clause')
+depends=('gcc' 'gmp' 'libffi' 'perl' 'ncurses5-compat-libs')
+makedepends=('ghc' 'libxslt' 'docbook-xsl')
install='ghc.install'
-options=('staticlibs')
-provides=('ghc8.2'
- 'haskell-array=0.5.2.0'
- 'haskell-base=4.10.1.0'
- 'haskell-binary=0.8.5.1'
- 'haskell-bytestring=0.10.8.2'
- 'haskell-containers=0.5.10.2'
- 'haskell-deepseq=1.4.3.0'
- 'haskell-directory=1.3.0.2'
- 'haskell-filepath=1.4.1.2'
- 'haskell-ghc-boot=8.2.2'
- 'haskell-ghc-boot-th=8.2.2'
- 'haskell-ghc-compact=0.1.0.0'
- 'haskell-ghc-prim=0.5.1.1'
- 'haskell-haskeline=0.7.4.0'
- 'haskell-hoopl=3.10.2.2'
- 'haskell-hpc=0.6.0.3'
- 'haskell-integer-gmp=1.0.1.0'
- 'haskell-pretty=1.1.3.3'
- 'haskell-process=1.6.1.0'
- 'haskell-template-haskell=2.12.0.0'
- 'haskell-terminfo=0.4.1.0'
- 'haskell-time=1.8.0.2'
- 'haskell-transformers=0.5.2.0'
- 'haskell-unix=2.7.2.2'
- 'haskell-xhtml=3000.2.2'
- 'haskell-cabal=2.0.1.0')
-replaces=('haskell-array'
- 'haskell-base'
- 'haskell-binary'
- 'haskell-bytestring'
- 'haskell-containers'
- 'haskell-deepseq'
- 'haskell-directory'
- 'haskell-filepath'
- 'haskell-ghc-boot'
- 'haskell-ghc-boot-th'
- 'haskell-ghc-compact'
- 'haskell-ghc-prim'
- 'haskell-haskeline'
- 'haskell-hoopl'
- 'haskell-hpc'
- 'haskell-integer-gmp'
- 'haskell-pretty'
- 'haskell-process'
- 'haskell-template-haskell'
- 'haskell-terminfo'
- 'haskell-time'
- 'haskell-transformers'
- 'haskell-unix'
- 'haskell-xhtml'
- 'haskell-cabal')
-conflicts=('ghc8.2')
-source_x86_64=("https://www.haskell.org/ghc/dist/${pkgver}/ghc-${pkgver}-x86_64-deb8-linux.tar.xz")
-source_i686=("https://www.haskell.org/ghc/dist/${pkgver}/ghc-${pkgver}-i386-deb8-linux.tar.xz")
-noextract=("ghc-${pkgver}-${CARCH}-deb8-linux.tar.xz")
-md5sums_x86_64=('2a2a867da5fd0ea9ba6508932b3ae09d')
-md5sums_i686=('0a448cc881b7b4483423cfc65063573a')
-
-prepare() {
- # for some reason, bsdtar cannot unpack this file:
- tar -xf "ghc-${pkgver}-${CARCH}-deb8-linux.tar.xz"
- # see https://wiki.archlinux.org/index.php/PKGBUILD#noextract
-}
+provides=("ghc${_ver_branch}")
+conflicts=("ghc${_ver_branch}")
+source=("https://www.haskell.org/ghc/dist/${pkgver}/ghc-${pkgver}-${CARCH}-deb8-linux.tar.xz")
+sha256sums=('48e205c62b9dc1ccf6739a4bc15a71e56dde2f891a9d786a1b115f0286111b2a')
build() {
cd ghc-${pkgver}
- sed -i 's,"$bindir/ghc","$bindir/ghc-8.2",' utils/runghc/runghc.wrapper
-
./configure \
--prefix=/usr \
- --docdir=/usr/share/doc/ghc-8.2
+ --docdir=/usr/share/doc/ghc-${_ver_branch}
+
+ # pop LICENSE file out of the docs directory
+ cp docs/users_guide/build-html/users_guide/_sources/license.txt LICENSE
}
package() {
@@ -95,18 +50,18 @@ package() {
make DESTDIR=${pkgdir} install
- mv ${pkgdir}/usr/bin/ghc ${pkgdir}/usr/bin/ghc-8.2
- mv ${pkgdir}/usr/bin/ghci ${pkgdir}/usr/bin/ghci-8.2
- mv ${pkgdir}/usr/bin/ghc-pkg ${pkgdir}/usr/bin/ghc-pkg-8.2
- mv ${pkgdir}/usr/bin/haddock ${pkgdir}/usr/bin/haddock-ghc-8.2
- mv ${pkgdir}/usr/bin/hp2ps ${pkgdir}/usr/bin/hp2ps-ghc-8.2
- mv ${pkgdir}/usr/bin/hpc ${pkgdir}/usr/bin/hpc-ghc-8.2
- mv ${pkgdir}/usr/bin/hsc2hs ${pkgdir}/usr/bin/hsc2hs-ghc-8.2
- mv ${pkgdir}/usr/bin/runghc ${pkgdir}/usr/bin/runghc-8.2
- rm ${pkgdir}/usr/bin/runhaskell # use runghc-8.2 instead
+ mv ${pkgdir}/usr/bin/ghc ${pkgdir}/usr/bin/ghc-${_ver_branch}
+ mv ${pkgdir}/usr/bin/ghci ${pkgdir}/usr/bin/ghci-${_ver_branch}
+ mv ${pkgdir}/usr/bin/ghc-pkg ${pkgdir}/usr/bin/ghc-pkg-${_ver_branch}
+ mv ${pkgdir}/usr/bin/haddock ${pkgdir}/usr/bin/haddock-ghc-${_ver_branch}
+ mv ${pkgdir}/usr/bin/hp2ps ${pkgdir}/usr/bin/hp2ps-ghc-${_ver_branch}
+ mv ${pkgdir}/usr/bin/hpc ${pkgdir}/usr/bin/hpc-ghc-${_ver_branch}
+ mv ${pkgdir}/usr/bin/hsc2hs ${pkgdir}/usr/bin/hsc2hs-ghc-${_ver_branch}
+ mv ${pkgdir}/usr/bin/runghc ${pkgdir}/usr/bin/runghc-${_ver_branch}
+ rm ${pkgdir}/usr/bin/runhaskell # use runghc-${_ver_branch} instead
- mv ${pkgdir}/usr/share/man/man1/ghc.1 ${pkgdir}/usr/share/man/man1/ghc-8.2.2
+ mv ${pkgdir}/usr/share/man/man1/ghc.1 ${pkgdir}/usr/share/man/man1/ghc-${_ver_branch}
- install -d ${pkgdir}/usr/share/licenses/ghc-8.2
- install -m644 LICENSE ${pkgdir}/usr/share/licenses/ghc-8.2
+ install -d ${pkgdir}/usr/share/licenses/ghc-${_ver_branch}
+ install -m644 LICENSE ${pkgdir}/usr/share/licenses/ghc-${_ver_branch}
}