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

Felix Yan felixonmars at archlinux.org
Sat Nov 28 17:30:29 UTC 2020


    Date: Saturday, November 28, 2020 @ 17:30:28
  Author: felixonmars
Revision: 765367

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-ranged-sets/repos/community-staging-x86_64/
  haskell-ranged-sets/repos/community-staging-x86_64/PKGBUILD
    (from rev 765366, haskell-ranged-sets/trunk/PKGBUILD)

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

Copied: haskell-ranged-sets/repos/community-staging-x86_64/PKGBUILD (from rev 765366, haskell-ranged-sets/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-28 17:30:28 UTC (rev 765367)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=Ranged-sets
+pkgname=haskell-ranged-sets
+pkgver=0.4.0
+pkgrel=63
+pkgdesc="Ranged sets for Haskell"
+url="https://code.haskell.org/ranged-sets"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-hunit' 'haskell-quickcheck')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('9dc63ab9f31c6233b7f663c2674d8bd95bb9ea8ab6eb6ba04a634e9596e861c003b82f1c8d04e289e64b2edf4f2b64afca36e688727edd281eb7f571fb605f92')
+
+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.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