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

Felix Yan felixonmars at archlinux.org
Thu Dec 24 14:23:45 UTC 2020


    Date: Thursday, December 24, 2020 @ 14:23:45
  Author: felixonmars
Revision: 788141

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-path/repos/community-staging-x86_64/PKGBUILD (from rev 788140, haskell-path/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-12-24 14:23:45 UTC (rev 788141)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=path
+pkgname=haskell-path
+pkgver=0.8.0
+pkgrel=64
+pkgdesc="Path"
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-hashable')
+makedepends=('ghc' 'haskell-genvalidity' 'haskell-genvalidity-hspec' 'haskell-genvalidity-property'
+             'haskell-hspec' 'haskell-quickcheck' 'haskell-validity')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('624c67d0f2779a4470c806d50666a122476d9553f304f1f69fafd3b11cd0acb588c0e246f5ed77d947f0e1ec59b95edbef8a95ff1190dca7a78e0b299b1ec063')
+
+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
+}
+
+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