[arch-commits] Commit in xmonad/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Mon Jun 19 06:17:19 UTC 2017


    Date: Monday, June 19, 2017 @ 06:17:18
  Author: felixonmars
Revision: 238119

upgpkg: xmonad 0.13-2

rebuild with ghc,8.0.2

Modified:
  xmonad/trunk/PKGBUILD

----------+
 PKGBUILD |   15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-06-19 06:13:08 UTC (rev 238118)
+++ PKGBUILD	2017-06-19 06:17:18 UTC (rev 238119)
@@ -6,14 +6,13 @@
 
 pkgname=xmonad
 pkgver=0.13
-pkgrel=1
+pkgrel=2
 pkgdesc="Lightweight X11 tiled window manager written in Haskell"
 arch=('i686' 'x86_64')
 url="http://xmonad.org/"
 license=('BSD')
-depends=('ghc=8.0.1' 'gmp' 'haskell-x11=1.8' 'sh' 'haskell-mtl=2.2.1'
-         'haskell-utf8-string' 'haskell-extensible-exceptions=0.1.1.4'
-         'haskell-data-default' 'haskell-setlocale')
+depends=('ghc' 'haskell-x11' 'sh' 'haskell-mtl' 'haskell-utf8-string'
+         'haskell-extensible-exceptions' 'haskell-data-default' 'haskell-setlocale')
 makedepends=('gendesk')
 optdepends=('xorg-xmessage: for displaying visual error messages')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/xmonad/xmonad/archive/v${pkgver}.tar.gz"
@@ -29,8 +28,9 @@
 build() {
   cd $srcdir/$pkgname-$pkgver
 
-  runhaskell Setup.lhs configure --ghc --enable-shared --enable-split-objs --prefix=/usr \
-             --libsubdir=\$compiler/site-local/\$pkgid --docdir=/usr/share/doc/${pkgname} 
+  runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+    --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+    --libsubdir=\$compiler/site-local/\$pkgid
   runhaskell Setup build
   runhaskell Setup haddock
   runhaskell Setup register --gen-script
@@ -54,4 +54,7 @@
   install -D -m644 LICENSE $pkgdir/usr/share/licenses/xmonad/LICENSE
   install -D -m644 $srcdir/xmonad.svg $pkgdir/usr/share/pixmaps/xmonad.svg
   install -D -m644 $srcdir/xmonad.desktop $pkgdir/usr/share/xsessions/xmonad.desktop
+
+  # Remove static libs
+  find "$pkgdir"/usr/lib -name "*.a" -delete
 }



More information about the arch-commits mailing list