Date: Wednesday, January 27, 2021 @ 08:34:37 Author: felixonmars Revision: 831783
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 831782, haskell-tzdata/trunk/PKGBUILD) ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Copied: haskell-tzdata/repos/community-staging-x86_64/PKGBUILD (from rev 831782, haskell-tzdata/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-01-27 08:34:37 UTC (rev 831783) @@ -0,0 +1,42 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=tzdata +pkgname=haskell-tzdata +pkgver=0.2.20201021.0 +pkgrel=31 +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 + 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 +} + +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 +}