Date: Wednesday, July 31, 2019 @ 13:26:28 Author: felixonmars Revision: 495543
archrelease: copy trunk to community-x86_64 Added: haskell-weigh/repos/community-x86_64/PKGBUILD (from rev 495542, haskell-weigh/trunk/PKGBUILD) Deleted: haskell-weigh/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 91 ++++++++++++++++++++++++++++--------------------------------- 1 file changed, 42 insertions(+), 49 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-07-31 13:25:56 UTC (rev 495542) +++ PKGBUILD 2019-07-31 13:26:28 UTC (rev 495543) @@ -1,49 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -_hkgname=rio -pkgname=haskell-rio -pkgver=0.1.11.0 -pkgrel=4 -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=('13cd40a4a76e3cea6b794b966cb17609eedc4fb2aed97258cdef5436c22816c0edd52e7b1cfa0d525909805c0fcf313a5e8eabbad7e24ca8e142fee6b70fa6ab') - -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" -} Copied: haskell-weigh/repos/community-x86_64/PKGBUILD (from rev 495542, haskell-weigh/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-07-31 13:26:28 UTC (rev 495543) @@ -0,0 +1,42 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=weigh +pkgname=haskell-weigh +pkgver=0.0.14 +pkgrel=1 +pkgdesc="Measure allocations of a Haskell functions/values" +url="https://github.com/fpco/weigh" +license=('BSD') +arch=('x86_64') +depends=('ghc-libs' 'haskell-split' 'haskell-temporary') +makedepends=('ghc') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('877df5b488eb7d2f2a3447cb3cf5ce891622b8ba26544ab734b5d119bd0bc215364faaa34edb99e89e8a51254e26689f52852caa0e4fd54ce0e614e6d1454d3f') + +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" +}