Date: Wednesday, January 22, 2020 @ 08:43:09 Author: felixonmars Revision: 553418
addpkg: haskell-lens-action 0.2.4-1 Added: haskell-lens-action/ haskell-lens-action/repos/ haskell-lens-action/repos/community-staging-x86_64/ haskell-lens-action/repos/community-staging-x86_64/PKGBUILD haskell-lens-action/repos/community-x86_64/ haskell-lens-action/repos/community-x86_64/PKGBUILD haskell-lens-action/trunk/ haskell-lens-action/trunk/PKGBUILD -----------------------------------------+ repos/community-staging-x86_64/PKGBUILD | 49 ++++++++++++++++++++++++++++++ repos/community-x86_64/PKGBUILD | 49 ++++++++++++++++++++++++++++++ trunk/PKGBUILD | 48 +++++++++++++++++++++++++++++ 3 files changed, 146 insertions(+) Added: haskell-lens-action/repos/community-staging-x86_64/PKGBUILD =================================================================== --- haskell-lens-action/repos/community-staging-x86_64/PKGBUILD (rev 0) +++ haskell-lens-action/repos/community-staging-x86_64/PKGBUILD 2020-01-22 08:43:09 UTC (rev 553418) @@ -0,0 +1,49 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=rio +pkgname=haskell-rio +pkgver=0.1.12.0 +pkgrel=9 +pkgdesc="A standard library for Haskell" +url="https://github.com/commercialhaskell/rio" +license=('MIT') +arch=('x86_64') +depends=('ghc-libs' 'haskell-exceptions' 'haskell-hashable' 'haskell-microlens' + 'haskell-primitive' 'haskell-typed-process' 'haskell-unliftio' 'haskell-unliftio-core' + 'haskell-unordered-containers' 'haskell-vector') +makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('ee168bb16080500ecc71bff42a74ebc2a16ac76985ec1a9ac2503680be5cc4dc9d265fd37f443781fb918f8c4c6bc87d0497dfec1d076a805a2ed7886ee9501a') + +prepare() { + cd $_hkgname-$pkgver + echo -e "import Distribution.Simple\nmain = defaultMain" > Setup.hs +} + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ + --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 +} + +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + +package() { + cd $_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" +} Added: haskell-lens-action/repos/community-x86_64/PKGBUILD =================================================================== --- haskell-lens-action/repos/community-x86_64/PKGBUILD (rev 0) +++ haskell-lens-action/repos/community-x86_64/PKGBUILD 2020-01-22 08:43:09 UTC (rev 553418) @@ -0,0 +1,49 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=rio +pkgname=haskell-rio +pkgver=0.1.12.0 +pkgrel=8 +pkgdesc="A standard library for Haskell" +url="https://github.com/commercialhaskell/rio" +license=('MIT') +arch=('x86_64') +depends=('ghc-libs' 'haskell-exceptions' 'haskell-hashable' 'haskell-microlens' + 'haskell-primitive' 'haskell-typed-process' 'haskell-unliftio' 'haskell-unliftio-core' + 'haskell-unordered-containers' 'haskell-vector') +makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('ee168bb16080500ecc71bff42a74ebc2a16ac76985ec1a9ac2503680be5cc4dc9d265fd37f443781fb918f8c4c6bc87d0497dfec1d076a805a2ed7886ee9501a') + +prepare() { + cd $_hkgname-$pkgver + echo -e "import Distribution.Simple\nmain = defaultMain" > Setup.hs +} + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ + --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 +} + +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + +package() { + cd $_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" +} Added: haskell-lens-action/trunk/PKGBUILD =================================================================== --- haskell-lens-action/trunk/PKGBUILD (rev 0) +++ haskell-lens-action/trunk/PKGBUILD 2020-01-22 08:43:09 UTC (rev 553418) @@ -0,0 +1,48 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=lens-action +pkgname=haskell-lens-action +pkgver=0.2.4 +pkgrel=1 +pkgdesc="Monadic Getters and Folds" +url="https://github.com/ekmett/lens-action" +license=('BSD') +arch=('x86_64') +depends=('ghc-libs' 'haskell-comonad' 'haskell-contravariant' 'haskell-lens' + 'haskell-profunctors' 'haskell-semigroupoids') +makedepends=('ghc' 'haskell-cabal-doctest' 'haskell-doctest') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('9fde7be03c4cc289e19cee5dd5695c247a71c2585f8e085033e862b158ddc062a138f500b7dd71e3eb9f51869759b83fb0f88309db53f24300aaa0076322b883') + +prepare() { + cd $_hkgname-$pkgver + sed -i '/semigroups/d' $_hkgname.cabal +} + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ + --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 +} + +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + +package() { + cd $_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" +}