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

Felix Yan felixonmars at archlinux.org
Tue Nov 6 20:44:11 UTC 2018


    Date: Tuesday, November 6, 2018 @ 20:44:11
  Author: felixonmars
Revision: 402148

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-syb/repos/community-staging-x86_64/
  haskell-syb/repos/community-staging-x86_64/PKGBUILD
    (from rev 402147, haskell-syb/trunk/PKGBUILD)

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

Copied: haskell-syb/repos/community-staging-x86_64/PKGBUILD (from rev 402147, haskell-syb/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-11-06 20:44:11 UTC (rev 402148)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Aaron Peschel <aaron.peschel via gmail dot com>
+# Contributor: Rémy Oudompheng <remy at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=syb
+pkgname=haskell-syb
+pkgver=0.7
+pkgrel=8
+pkgdesc="library for generic programming in Haskell"
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=('custom:BSD3')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('b1bc61cfb828dcf344784ca1686b563bfe12388363fe387b86ddfa8a90f6f38a2f2a595cff969cb577e0a6460c2ad032d7477b701bd2503cc05ee6f974c5bcb9')
+
+build() {
+    cd $_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
+    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
+}
+
+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