Date: Tuesday, September 27, 2022 @ 14:43:53
  Author: felixonmars
Revision: 1312587

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

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

Copied: haskell-tzdata/repos/community-staging-x86_64/PKGBUILD (from rev 
1312586, haskell-tzdata/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-09-27 14:43:53 UTC (rev 1312587)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+_hkgname=tzdata
+pkgname=haskell-tzdata
+pkgver=0.2.20220923.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=('9b3268e638464390c1858a9324a8e68578e6a31e2c88d577c9150ff2b9adaee0f7fab069cfb715f1df4922cf381a0084841b9b8cfa69832150cb87cdee736486')
+
+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
+}

Reply via email to