Date: Tuesday, May 28, 2019 @ 23:13:27 Author: felixonmars Revision: 473272
archrelease: copy trunk to community-staging-x86_64 Added: haskell-src-exts/repos/community-staging-x86_64/PKGBUILD (from rev 473271, haskell-src-exts/trunk/PKGBUILD) Deleted: haskell-src-exts/repos/community-staging-x86_64/PKGBUILD ----------+ PKGBUILD | 88 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 44 insertions(+), 44 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-05-28 23:13:16 UTC (rev 473271) +++ PKGBUILD 2019-05-28 23:13:27 UTC (rev 473272) @@ -1,44 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Arch Haskell Team <arch-hask...@haskell.org> - -_hkgname=haskell-src-exts -pkgname=haskell-src-exts -pkgver=1.21.0 -pkgrel=15 -pkgdesc="Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer" -url="https://github.com/haskell-suite/haskell-src-exts" -license=("custom:BSD") -arch=('x86_64') -depends=('ghc-libs') -makedepends=('ghc' 'happy' 'haskell-pretty-show' 'haskell-smallcheck' 'haskell-tasty' - 'haskell-tasty-golden' 'haskell-tasty-smallcheck') -source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('73e5a0b811d37d8c304c12cf7adbeac3642e626ed3f1ad8b007aca19dc04f0b2a991cdbef52432c3467584bd1ff7ce424a3bcd86b13e6ef10819a11ef44b889c') - -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-src-exts/repos/community-staging-x86_64/PKGBUILD (from rev 473271, haskell-src-exts/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-05-28 23:13:27 UTC (rev 473272) @@ -0,0 +1,44 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=haskell-src-exts +pkgname=haskell-src-exts +pkgver=1.21.0 +pkgrel=16 +pkgdesc="Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer" +url="https://github.com/haskell-suite/haskell-src-exts" +license=("custom:BSD") +arch=('x86_64') +depends=('ghc-libs') +makedepends=('ghc' 'happy' 'haskell-pretty-show' 'haskell-smallcheck' 'haskell-tasty' + 'haskell-tasty-golden' 'haskell-tasty-smallcheck') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('73e5a0b811d37d8c304c12cf7adbeac3642e626ed3f1ad8b007aca19dc04f0b2a991cdbef52432c3467584bd1ff7ce424a3bcd86b13e6ef10819a11ef44b889c') + +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" +}