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

Felix Yan felixonmars at archlinux.org
Tue Apr 7 21:59:56 UTC 2020


    Date: Tuesday, April 7, 2020 @ 21:59:55
  Author: felixonmars
Revision: 612499

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-data-fix/repos/community-staging-x86_64/
  haskell-data-fix/repos/community-staging-x86_64/PKGBUILD
    (from rev 612498, haskell-data-fix/trunk/PKGBUILD)

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

Copied: haskell-data-fix/repos/community-staging-x86_64/PKGBUILD (from rev 612498, haskell-data-fix/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-04-07 21:59:55 UTC (rev 612499)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=data-fix
+pkgname=haskell-data-fix
+pkgver=0.2.1
+pkgrel=1
+pkgdesc="Fixpoint data types"
+url="https://github.com/anton-k/data-fix"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('5dd025f2f5688e9538ad8c6a938b2314efb2da5bec7fe5bf7fa8015713f38d490fd92ad08f4f09cac6d6c6a8fb69d663935aeb3b1853e5a04aa71a0f11743fb8')
+
+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
+    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