[arch-commits] Commit in haskell-tzdata/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu May 27 01:43:57 UTC 2021


    Date: Thursday, May 27, 2021 @ 01:43:56
  Author: felixonmars
Revision: 947693

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 947692, haskell-tzdata/trunk/PKGBUILD)

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: haskell-tzdata/repos/community-staging-x86_64/PKGBUILD (from rev 947692, haskell-tzdata/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-05-27 01:43:56 UTC (rev 947693)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=tzdata
+pkgname=haskell-tzdata
+pkgver=0.2.20201021.0
+pkgrel=63
+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 --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
+}



More information about the arch-commits mailing list