Date: Saturday, November 13, 2021 @ 16:23:14 Author: felixonmars Revision: 1045604
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 1045603, haskell-tzdata/trunk/PKGBUILD) ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Copied: haskell-tzdata/repos/community-staging-x86_64/PKGBUILD (from rev 1045603, haskell-tzdata/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-11-13 16:23:14 UTC (rev 1045604) @@ -0,0 +1,42 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=tzdata +pkgname=haskell-tzdata +pkgver=0.2.20201021.0 +pkgrel=85 +pkgdesc="Haskell package that distributes the standard time zone database" +url="https://github.com/nilcons/haskell-tzdata" +license=('Apache') +arch=('x86_64') +depends=('ghc-libs' 'haskell-vector') +makedepends=('ghc' 'haskell-test-framework' 'haskell-test-framework-hunit' + 'haskell-test-framework-th') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('631a3a5f3e8cb30c20e67b51ceeeb11cd0f44f93f87b50b7aecd95b64b47d6101dbb623c7418a121f9d370dfddc2e77495457b03abf8f93dd88f4d34fa21657a') + +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 --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 +}