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

Felix Yan felixonmars at archlinux.org
Fri May 21 17:16:50 UTC 2021


    Date: Friday, May 21, 2021 @ 17:16:50
  Author: felixonmars
Revision: 940826

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

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

Copied: haskell-structured/repos/community-staging-x86_64/PKGBUILD (from rev 940825, haskell-structured/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-05-21 17:16:50 UTC (rev 940826)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=structured
+pkgname=haskell-structured
+pkgver=0.1.0.1
+pkgrel=18
+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=('511331a7728dfd3e1ad421f90e3128ae92a3e5e9b616d45f71892f24267d29502c67fe43e80c105adf8d34dbbb7d6f39febe0c4c6d877492d1b0427e0a89c096')
+
+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
+    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