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

Felix Yan felixonmars at archlinux.org
Tue Sep 3 08:04:05 UTC 2019


    Date: Tuesday, September 3, 2019 @ 08:04:04
  Author: felixonmars
Revision: 507264

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-xcffib/repos/community-staging-x86_64/PKGBUILD (from rev 507263, haskell-xcffib/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-09-03 08:04:04 UTC (rev 507264)
@@ -0,0 +1,44 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=xcffib
+pkgname=haskell-xcffib
+pkgver=0.8.1
+pkgrel=16
+pkgdesc="A cffi-based python binding for X"
+url="https://github.com/tych0/xcffib"
+license=('Apache')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-attoparsec' 'haskell-either' 'haskell-filemanip' 'haskell-language-python'
+         'haskell-optparse-applicative' 'haskell-split' 'haskell-xcb-types')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('0e56992f9a2b92d7ee868a08da5ddc7eb2c3ab7f145fd16d99d686066031d4e4487014f5594223353ba3ca5dc44b8d2840813a41fd94b9d5c97bfebec60b8780')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    sed -i '/semigroups/d' $_hkgname.cabal
+    echo -e "import Distribution.Simple\nmain = defaultMain" > Setup.hs
+}
+
+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