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

Felix Yan felixonmars at gemini.archlinux.org
Fri Mar 18 23:46:39 UTC 2022


    Date: Friday, March 18, 2022 @ 23:46:38
  Author: felixonmars
Revision: 1160091

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

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

Copied: haskell-tzdata/repos/community-staging-x86_64/PKGBUILD (from rev 1160090, haskell-tzdata/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-03-18 23:46:38 UTC (rev 1160091)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=tzdata
+pkgname=haskell-tzdata
+pkgver=0.2.20220315.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=('70a1a45a216f09be4776c66b398cf37f13b4a6780d10d7260592995da72c4ecd69d7fcdd24dddbe11179b5cbd37305963309f3901b330e630b439cc6b6fa60b4')
+
+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
+}



More information about the arch-commits mailing list