[arch-commits] Commit in haskell-data-default-instances-base/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun Aug 30 11:07:46 UTC 2020


    Date: Sunday, August 30, 2020 @ 11:07:45
  Author: felixonmars
Revision: 692701

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-data-default-instances-base/repos/community-staging-x86_64/
  haskell-data-default-instances-base/repos/community-staging-x86_64/PKGBUILD
    (from rev 692700, haskell-data-default-instances-base/trunk/PKGBUILD)

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

Copied: haskell-data-default-instances-base/repos/community-staging-x86_64/PKGBUILD (from rev 692700, haskell-data-default-instances-base/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-08-30 11:07:45 UTC (rev 692701)
@@ -0,0 +1,36 @@
+# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
+
+_hkgname=data-default-instances-base
+pkgname=haskell-data-default-instances-base
+pkgver=0.1.0.1
+pkgrel=19
+pkgdesc="Default instances for types in base"
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-data-default-class')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('32d25a84dc22be5fc0145a32eb4bb8879c4ab43ec08cba9a6e48084e668ca704b1fa69b82f756759a467c23958878c0dfe00620a6a8763e95e319ef71dcbb46d')
+
+build() {
+    cd ${srcdir}/${_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 -fnetwork-uri
+    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 "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+    rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}



More information about the arch-commits mailing list