[arch-commits] Commit in haskell-first-class-families/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Mar 9 12:54:54 UTC 2021


    Date: Tuesday, March 9, 2021 @ 12:54:54
  Author: felixonmars
Revision: 887003

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-first-class-families/repos/community-staging-x86_64/
  haskell-first-class-families/repos/community-staging-x86_64/PKGBUILD
    (from rev 887002, haskell-first-class-families/trunk/PKGBUILD)

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

Copied: haskell-first-class-families/repos/community-staging-x86_64/PKGBUILD (from rev 887002, haskell-first-class-families/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-03-09 12:54:54 UTC (rev 887003)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=first-class-families
+pkgname=haskell-first-class-families
+pkgver=0.8.0.1
+pkgrel=1
+pkgdesc="First class type families"
+url="https://github.com/Lysxia/first-class-families"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('d1c24baee2cb9379ae8c13d20e6c1f86bf78b8e51bcc212d977cadae96912f19e2de0aa4d938ed8695461a01d712c1b23bd24f48af7a6d3628f78adf2a696a1f')
+
+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