Date: Thursday, September 22, 2022 @ 10:34:16 Author: felixonmars Revision: 1307167
archrelease: copy trunk to community-staging-x86_64 Added: haskell-tzdata/repos/community-staging-x86_64/ haskell-tzdata/repos/community-staging-x86_64/PKGBUILD (from rev 1307166, haskell-tzdata/trunk/PKGBUILD) ----------+ PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) Copied: haskell-tzdata/repos/community-staging-x86_64/PKGBUILD (from rev 1307166, haskell-tzdata/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-09-22 10:34:16 UTC (rev 1307167) @@ -0,0 +1,41 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=tzdata +pkgname=haskell-tzdata +pkgver=0.2.20220815.0 +pkgrel=8 +pkgdesc="Haskell package that distributes the standard time zone database" +url="https://github.com/ysangkok/haskell-tzdata" +license=('Apache') +arch=('x86_64') +depends=('ghc-libs' 'haskell-vector') +makedepends=('ghc' 'haskell-hunit' 'haskell-tasty' 'haskell-tasty-hunit' 'haskell-tasty-th') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('6aee1dccbdec8df0d6ddd60719b036f95f831bd859dbfe4e687e1dacf39383dfce682a278079a6ad20cffcdf01b591277596b98f03a724e1e912487b09e988ee') + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm + runhaskell Setup build $MAKEFLAGS + 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 --show-details=direct +} + +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" + rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE +}