Date: Thursday, May 17, 2018 @ 11:22:34
  Author: felixonmars
Revision: 323699

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-x11/repos/community-staging-x86_64/PKGBUILD (from rev 323698, 
haskell-x11/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-17 11:22:34 UTC (rev 323699)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com>
+# Contributor: shild <s...@bk.ru>
+# Maintainer: Vesa Kaihlavirta <ve...@iki.fi>
+
+_hkgname=X11
+pkgname=haskell-x11
+pkgver=1.8
+pkgrel=8
+pkgdesc="A Haskell binding to the X11 graphics library."
+arch=(x86_64)
+url="https://hackage.haskell.org/cgi-bin/hackage-scripts/package/X11";
+license=('custom:BSD3')
+depends=('ghc-libs' "libx11" "libxinerama" "libxrandr" "haskell-data-default")
+conflicts=(haskell-x11-extras)
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/X11/$pkgver/X11-$pkgver.tar.gz)
+sha512sums=('bb647bcc7504b3e4267d6a8a6ec73766fe62d7f5b3966bfa037742849c4a1128ea22608dd8353a6035aedc2046c53fae65c8b54f2933a4b896297159f5c2e59c')
+
+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
+    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 "${srcdir}/${_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"
+}

Reply via email to