Date: Thursday, March 18, 2021 @ 19:20:53
  Author: felixonmars
Revision: 894505

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-tomland/repos/community-staging-x86_64/PKGBUILD (from rev 
894504, haskell-tomland/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-03-18 19:20:53 UTC (rev 894505)
@@ -0,0 +1,55 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: berberman <hat...@typed.icu>
+
+_hkgname=tomland
+pkgname=haskell-tomland
+pkgver=1.3.3.0
+pkgrel=1
+pkgdesc="Implementation of bidirectional TOML serialization."
+url="https://github.com/kowainik/tomland";
+license=('MPL2')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-hashable' 'haskell-megaparsec' 
'haskell-parser-combinators'
+         'haskell-unordered-containers' 'haskell-validation-selective')
+makedepends=('ghc' 'uusi' 'haskell-hedgehog' 'haskell-hspec' 
'haskell-hspec-hedgehog'
+             'haskell-hspec-megaparsec' 'haskell-markdown-unlit')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz";)
+sha512sums=('3bf4e6382993c07f776b2dd7326e2eeecde581fe145a60caaa3b0decb8d81404e772a12594442afa6bce289c3df6548dc46df6c82822e9c7e4f0be0b7d3af1c8')
+
+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=-optl-Wl\,-z\,relro\,-z\,now \
+    --ghc-option='-pie'
+
+  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
+}
+
+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
+
+  mv "$pkgdir"/usr/bin/{,tomland-}readme
+}

Reply via email to