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

Felix Yan felixonmars at gemini.archlinux.org
Fri Aug 26 15:45:42 UTC 2022


    Date: Friday, August 26, 2022 @ 15:45:42
  Author: felixonmars
Revision: 1282915

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 1282914, haskell-structured/trunk/PKGBUILD)

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

Copied: haskell-structured/repos/community-staging-x86_64/PKGBUILD (from rev 1282914, haskell-structured/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-08-26 15:45:42 UTC (rev 1282915)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=structured
+pkgname=haskell-structured
+pkgver=0.1.1
+pkgrel=81
+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
+    uusi -u hashable $_hkgname.cabal
+}
+
+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"
+    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