Date: Saturday, November 16, 2019 @ 17:47:37 Author: felixonmars Revision: 529667
archrelease: copy trunk to community-x86_64 Added: stylish-haskell/repos/community-x86_64/PKGBUILD (from rev 529666, stylish-haskell/trunk/PKGBUILD) Deleted: stylish-haskell/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 99 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 50 insertions(+), 49 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-11-16 17:47:20 UTC (rev 529666) +++ PKGBUILD 2019-11-16 17:47:37 UTC (rev 529667) @@ -1,49 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Arch Haskell Team <arch-hask...@haskell.org> - -pkgname=stylish-haskell -pkgver=0.9.3.0 -pkgrel=3 -pkgdesc="Haskell code prettifier" -url="https://github.com/jaspervdj/stylish-haskell" -license=("BSD") -arch=('x86_64') -depends=('ghc-libs' 'haskell-aeson' 'haskell-file-embed' 'haskell-optparse-applicative' - 'haskell-src-exts' 'haskell-strict' 'haskell-syb' 'haskell-yaml') -makedepends=('ghc' 'haskell-hunit' 'haskell-test-framework' 'haskell-test-framework-hunit') -source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") -sha512sums=('b8a59992a48d6726e442797b7aaf822629466d1c5dafeccb363416235d45e9ce98ee0eadf657cc2a9e6010abf31ea4722f8c8faa3f2b767fceb6dce6926af5bb') - -prepare() { - cd $pkgname-$pkgver - sed -i -e '/semigroups/d' $pkgname.cabal -} - -build() { - cd $pkgname-$pkgver - - runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ - --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests --datasubdir="$pkgname" \ - --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ - -f-old_base --ghc-option='-pie' - 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 $pkgname-$pkgver - runhaskell Setup test -} - -package() { - cd $pkgname-$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: stylish-haskell/repos/community-x86_64/PKGBUILD (from rev 529666, stylish-haskell/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-11-16 17:47:37 UTC (rev 529667) @@ -0,0 +1,50 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +pkgname=stylish-haskell +pkgver=0.9.4.4 +pkgrel=1 +pkgdesc="Haskell code prettifier" +url="https://github.com/jaspervdj/stylish-haskell" +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-aeson' 'haskell-file-embed' 'haskell-optparse-applicative' + 'haskell-src-exts' 'haskell-strict' 'haskell-syb' 'haskell-yaml') +makedepends=('ghc' 'haskell-hunit' 'haskell-random' 'haskell-test-framework' + 'haskell-test-framework-hunit') +source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('5226d203295e03600f07fe21905a1ea1231bd79b1d7bc5e157c74f79054181df0e5f7d549dd418de0a610d70450ba1f2ae9d9ff804fa21674dacd0c17fb26bc9') + +prepare() { + cd $pkgname-$pkgver + sed -i -e '/semigroups/d' $pkgname.cabal +} + +build() { + cd $pkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests --datasubdir="$pkgname" \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ + -f-old_base --ghc-option='-pie' + 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 $pkgname-$pkgver + runhaskell Setup test +} + +package() { + cd $pkgname-$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" +}