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

Felix Yan felixonmars at archlinux.org
Sun Nov 22 21:26:03 UTC 2020


    Date: Sunday, November 22, 2020 @ 21:26:03
  Author: felixonmars
Revision: 759583

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-system-fileio/repos/community-staging-x86_64/
  haskell-system-fileio/repos/community-staging-x86_64/PKGBUILD
    (from rev 759582, haskell-system-fileio/trunk/PKGBUILD)

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

Copied: haskell-system-fileio/repos/community-staging-x86_64/PKGBUILD (from rev 759582, haskell-system-fileio/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-22 21:26:03 UTC (rev 759583)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=system-fileio
+pkgname=haskell-system-fileio
+pkgver=0.3.16.4
+pkgrel=76
+pkgdesc="Consistent filesystem interaction across GHC versions"
+url="https://github.com/fpco/haskell-filesystem"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-system-filepath")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('68530cd11b25aa8a05967d3f51091ea57a5be138b672bd5373918163281c55a91b60dea03bdd22bcd4ba1d6bb26e2ed14660ce55bbdaf2737d2dd2b7e608d698')
+
+build() {
+    cd $_hkgname-$pkgver
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname \
+        --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
+}
+
+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.txt" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/license.txt"
+}



More information about the arch-commits mailing list