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

Felix Yan felixonmars at gemini.archlinux.org
Wed Feb 2 23:24:32 UTC 2022


    Date: Wednesday, February 2, 2022 @ 23:24:32
  Author: felixonmars
Revision: 1123562

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-structured/repos/community-staging-x86_64/
  haskell-structured/repos/community-staging-x86_64/PKGBUILD
    (from rev 1123561, haskell-structured/trunk/PKGBUILD)

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

Copied: haskell-structured/repos/community-staging-x86_64/PKGBUILD (from rev 1123561, haskell-structured/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-02-02 23:24:32 UTC (rev 1123562)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=structured
+pkgname=haskell-structured
+pkgver=0.1.1
+pkgrel=28
+pkgdesc="Structure (hash) of your data types"
+url="https://github.com/phadej/binary-tagged"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-base16-bytestring' 'haskell-hashable'
+         'haskell-scientific' 'haskell-tagged' 'haskell-time-compat' 'haskell-unordered-containers'
+         'haskell-uuid-types' 'haskell-vector')
+makedepends=('ghc' 'uusi')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('2edece8d10d21535bfaa77c9a71a2b1cfdcf45d9869994b0cd051fec4d9f781a4e475abed4ca109e46ebdd0968d119e233cee2991c70efcd2b3536a69260f71f')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    gen-setup
+}
+
+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"
+    install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+    rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}



More information about the arch-commits mailing list