Date: Sunday, January 31, 2021 @ 03:04:44
  Author: felixonmars
Revision: 837007

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-path-io/repos/community-staging-x86_64/
  haskell-path-io/repos/community-staging-x86_64/PKGBUILD
    (from rev 837006, haskell-path-io/trunk/PKGBUILD)

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

Copied: haskell-path-io/repos/community-staging-x86_64/PKGBUILD (from rev 
837006, haskell-path-io/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-01-31 03:04:44 UTC (rev 837007)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Daniel Nagy <danielnagy at gmx de>
+# Contributor: Daniel Micay <danielmi...@gmail.com>
+
+_hkgname=path-io
+pkgname=haskell-path-io
+pkgver=1.6.2
+pkgrel=42
+pkgdesc="Interface to ‘directory’ package for users of ‘path’"
+url="https://github.com/mrkkrp/path-io";
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-dlist' 'haskell-path' 'haskell-temporary'
+         'haskell-unix-compat')
+makedepends=('ghc' 'haskell-hspec')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-${pkgver}.tar.gz";)
+sha512sums=('fd11ebae212c20a9ae68e79021c4b679e77b4bdd996eef499501a1357a492b56541368b1c04fe3d58f40c3d41ae791e921c16795097e3fe9eb87461036afb97d')
+
+build() {
+  cd "$srcdir/$_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 \
+            -f-dev
+  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.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
+  rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE.md
+}

Reply via email to