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

Felix Yan felixonmars at gemini.archlinux.org
Sat Aug 13 17:30:31 UTC 2022


    Date: Saturday, August 13, 2022 @ 17:30:31
  Author: felixonmars
Revision: 1265979

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

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

Copied: haskell-tzdata/repos/community-staging-x86_64/PKGBUILD (from rev 1265978, haskell-tzdata/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-08-13 17:30:31 UTC (rev 1265979)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=tzdata
+pkgname=haskell-tzdata
+pkgver=0.2.20220810.0
+pkgrel=1
+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=('fe7cd37bb4d72739cfde8c96e749c1871d8503884e59372e0865eb5f91ad659ca8694744b0c0e54219f22dab37f413a5159a89c445ef364cd837a847a41c1e5c')
+
+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
+}



More information about the arch-commits mailing list