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

Felix Yan felixonmars at archlinux.org
Wed Dec 23 22:32:06 UTC 2020


    Date: Wednesday, December 23, 2020 @ 22:32:06
  Author: felixonmars
Revision: 785540

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 785539, 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 785539, haskell-data-default-instances-base/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-12-23 22:32:06 UTC (rev 785540)
@@ -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=20
+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