diff options
-rw-r--r-- | .SRCINFO | 69 | ||||
-rw-r--r-- | PKGBUILD | 90 | ||||
-rw-r--r-- | haskell-linear-semigroups.patch | 11 |
3 files changed, 78 insertions, 92 deletions
@@ -1,58 +1,31 @@ pkgbase = haskell-linear - pkgdesc = Linear Algebra - pkgver = 1.20.7 + pkgdesc = Types and combinators for linear algebra on free vector spaces. + pkgver = 1.20.8 pkgrel = 1 - url = http://github.com/ekmett/linear + url = https://hackage.haskell.org/package/linear arch = i686 arch = x86_64 license = custom:BSD3 makedepends = ghc depends = ghc-libs - depends = haskell-adjunctions>=4.0 - depends = haskell-adjunctions<5 - depends = haskell-base>=4.5 - depends = haskell-base<5 - depends = haskell-base-orphans>=0.5 - depends = haskell-base-orphans<1 - depends = haskell-binary>=0.5 - depends = haskell-binary<0.9 - depends = haskell-bytes>=0.15 - depends = haskell-bytes<1 - depends = haskell-cereal>=0.4.1.1 - depends = haskell-cereal<0.6 - depends = haskell-containers>=0.4 - depends = haskell-containers<0.6 - depends = haskell-deepseq>=1.1 - depends = haskell-deepseq<1.5 - depends = haskell-distributive>=0.2.2 - depends = haskell-distributive<1 - depends = haskell-ghc-prim - depends = haskell-hashable>=1.1 - depends = haskell-hashable<1.3 - depends = haskell-lens>=4.0 - depends = haskell-lens<5 - depends = haskell-reflection>=1.3.2 - depends = haskell-reflection<3 - depends = haskell-semigroupoids>=5.2.1 - depends = haskell-semigroupoids<5.3 - depends = haskell-semigroups>=0.9 - depends = haskell-semigroups<1 - depends = haskell-tagged>=0.4.4 - depends = haskell-tagged<1 - depends = haskell-template-haskell>=2.7 - depends = haskell-template-haskell<3.0 - depends = haskell-transformers>=0.2 - depends = haskell-transformers<0.6 - depends = haskell-transformers-compat>=0.4 - depends = haskell-transformers-compat<1 - depends = haskell-unordered-containers>=0.2.3 - depends = haskell-unordered-containers<0.3 - depends = haskell-vector>=0.10.0 - depends = haskell-vector<0.13 - depends = haskell-void>=0.6 - depends = haskell-void<1 - source = https://hackage.haskell.org/packages/archive/linear/1.20.7/linear-1.20.7.tar.gz - sha512sums = d60e2f5bb3bee1ad71e7756090b91a1268b5f40065300f511bf190629aaa1c6cfc424feb576641517a5ff63d4afaa655bc01326eacf4b304220911486ff9745c + depends = haskell-adjunctions + depends = haskell-base-orphans + depends = haskell-bytes + depends = haskell-cereal + depends = haskell-distributive + depends = haskell-hashable + depends = haskell-lens + depends = haskell-reflection + depends = haskell-semigroupoids + depends = haskell-tagged + depends = haskell-transformers-compat + depends = haskell-unordered-containers + depends = haskell-vector + depends = haskell-void + source = https://hackage.haskell.org/packages/archive/linear/1.20.8/linear-1.20.8.tar.gz + source = haskell-linear-semigroups.patch + sha512sums = 7ddb8f394e202d1225864a2bbf5d6b81abb70accb59a634deddc672470418896e3df00e1f7e120bae9e249bf7571ca530be1f511224f818e1ba76e077f99cc77 + sha512sums = 4a4d8451982c97cdff35598bea5d0cd892b23382e59a6bc16fdc346ef71ca2471b34fe8e0ace74ca5f0c385e26ba2b7763bb76e7e89732d09e43e190f2af7453 pkgname = haskell-linear @@ -1,61 +1,63 @@ -# $Id$ -# Maintainer: Emanuel Couto <unit73e at gmail dot com> +# Maintainer: Jaron Kent-Dobias <jaron@kent-dobias.com> +# Contributor: Emanuel Couto <unit73e at gmail dot com> # Contributor: André van Delden <andre.van.delden at uni-bremen dot de> _hkgname=linear pkgname=haskell-linear -pkgver=1.20.7 +pkgver=1.20.8 pkgrel=1 -pkgdesc="Linear Algebra" -url="http://github.com/ekmett/linear" +pkgdesc="Types and combinators for linear algebra on free vector spaces." +url="https://hackage.haskell.org/package/linear" license=('custom:BSD3') arch=('i686' 'x86_64') depends=('ghc-libs' - 'haskell-adjunctions>=4.0' 'haskell-adjunctions<5' - 'haskell-base>=4.5' 'haskell-base<5' - 'haskell-base-orphans>=0.5' 'haskell-base-orphans<1' - 'haskell-binary>=0.5' 'haskell-binary<0.9' - 'haskell-bytes>=0.15' 'haskell-bytes<1' - 'haskell-cereal>=0.4.1.1' 'haskell-cereal<0.6' - 'haskell-containers>=0.4' 'haskell-containers<0.6' - 'haskell-deepseq>=1.1' 'haskell-deepseq<1.5' - 'haskell-distributive>=0.2.2' 'haskell-distributive<1' - 'haskell-ghc-prim' - 'haskell-hashable>=1.1' 'haskell-hashable<1.3' - 'haskell-lens>=4.0' 'haskell-lens<5' - 'haskell-reflection>=1.3.2' 'haskell-reflection<3' - 'haskell-semigroupoids>=5.2.1' 'haskell-semigroupoids<5.3' - 'haskell-semigroups>=0.9' 'haskell-semigroups<1' - 'haskell-tagged>=0.4.4' 'haskell-tagged<1' - 'haskell-template-haskell>=2.7' 'haskell-template-haskell<3.0' - 'haskell-transformers>=0.2' 'haskell-transformers<0.6' - 'haskell-transformers-compat>=0.4' 'haskell-transformers-compat<1' - 'haskell-unordered-containers>=0.2.3' 'haskell-unordered-containers<0.3' - 'haskell-vector>=0.10.0' 'haskell-vector<0.13' - 'haskell-void>=0.6' 'haskell-void<1') + 'haskell-adjunctions' + 'haskell-base-orphans' + 'haskell-bytes' + 'haskell-cereal' + 'haskell-distributive' + 'haskell-hashable' + 'haskell-lens' + 'haskell-reflection' + 'haskell-semigroupoids' + 'haskell-tagged' + 'haskell-transformers-compat' + 'haskell-unordered-containers' + 'haskell-vector' + 'haskell-void') makedepends=('ghc') -source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('d60e2f5bb3bee1ad71e7756090b91a1268b5f40065300f511bf190629aaa1c6cfc424feb576641517a5ff63d4afaa655bc01326eacf4b304220911486ff9745c') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz" + "haskell-linear-semigroups.patch") +sha512sums=('7ddb8f394e202d1225864a2bbf5d6b81abb70accb59a634deddc672470418896e3df00e1f7e120bae9e249bf7571ca530be1f511224f818e1ba76e077f99cc77' + '4a4d8451982c97cdff35598bea5d0cd892b23382e59a6bc16fdc346ef71ca2471b34fe8e0ace74ca5f0c385e26ba2b7763bb76e7e89732d09e43e190f2af7453') + +prepare() { + cd ${_hkgname}-${pkgver} + patch -Np1 -i "${srcdir}/haskell-linear-semigroups.patch" +} build() { - cd "${srcdir}/${_hkgname}-${pkgver}" + cd "${srcdir}/${_hkgname}-${pkgver}" - runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ - --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ - --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid - runhaskell Setup build - runhaskell Setup register --gen-script - runhaskell Setup unregister --gen-script - sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh - sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid + runhaskell Setup build + runhaskell Setup register --gen-script + runhaskell Setup unregister --gen-script + sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh + sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } package() { - cd "${srcdir}/${_hkgname}-${pkgver}" + cd "${srcdir}/${_hkgname}-${pkgver}" - install -D -m744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh" - install -D -m744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh" - runhaskell Setup copy --destdir="${pkgdir}" - install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" + install -D -m744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh" + install -D -m744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh" + runhaskell Setup copy --destdir="${pkgdir}" + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm 644 CHANGELOG.markdown README.markdown -t "${pkgdir}/usr/share/doc/${pkgname}" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" } + +# vim: ts=2 sw=2 et: diff --git a/haskell-linear-semigroups.patch b/haskell-linear-semigroups.patch new file mode 100644 index 000000000000..876d7cdb4642 --- /dev/null +++ b/haskell-linear-semigroups.patch @@ -0,0 +1,11 @@ +diff -ura linear-1.20.8/linear.cabal linear-1.20.8.new/linear.cabal +--- linear-1.20.8/linear.cabal 2018-07-03 16:25:33.000000000 -0400 ++++ linear-1.20.8.new/linear.cabal 2019-02-11 09:45:58.801806603 -0500 +@@ -69,7 +69,6 @@ + hashable >= 1.1 && < 1.3, + lens >= 4.15.2 && < 5, + reflection >= 1.3.2 && < 3, +- semigroups >= 0.9 && < 1, + semigroupoids >= 5.2.1 && < 6, + tagged >= 0.4.4 && < 1, + transformers >= 0.2 && < 0.6, |