[arch-commits] Commit in xmonad-contrib/repos (2 files)
Levente Polyak
anthraxx at archlinux.org
Tue Aug 14 13:18:45 UTC 2018
Date: Tuesday, August 14, 2018 @ 13:18:44
Author: anthraxx
Revision: 371512
archrelease: copy trunk to community-staging-x86_64
Added:
xmonad-contrib/repos/community-staging-x86_64/
xmonad-contrib/repos/community-staging-x86_64/PKGBUILD
(from rev 371511, xmonad-contrib/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: xmonad-contrib/repos/community-staging-x86_64/PKGBUILD (from rev 371511, xmonad-contrib/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-08-14 13:18:44 UTC (rev 371512)
@@ -0,0 +1,42 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Vesa Kaihlavirta <vegai at iki.fi>
+# Contributor: orbisvicis <gmail.com>
+
+pkgname=xmonad-contrib
+pkgver=0.14
+pkgrel=1
+pkgdesc='Add-ons for xmonad'
+url='http://xmonad.org/'
+arch=('x86_64')
+license=('BSD')
+depends=('ghc-libs' 'xmonad' 'sh' 'haskell-x11' 'haskell-x11-xft' 'haskell-utf8-string' 'haskell-random'
+ 'haskell-old-time')
+makedepends=('ghc')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/xmonad/xmonad-contrib/archive/v${pkgver}.tar.gz)
+sha512sums=('e390daf57990c7b509448cefd963b2e13361a5d8d9918de78d415d6de6a29eb9cd82202bc023a093f273b4b0497df5bf9bfcfd88f80ddad11ca98e11d3cc5e58')
+
+prepare() {
+ sed -i -e '/semigroups/d' -e 's/utf8-string,/utf8-string/' ${pkgname}-${pkgver}/${pkgname}.cabal
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+ runhaskell Setup.lhs configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr -fuse_xft --libsubdir=\$compiler/site-local/\$pkgid \
+ --docdir=/usr/share/doc/${pkgname}
+ 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 ${pkgname}-${pkgver}
+ install -Dm 744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
+ install -Dm 744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh"
+ runhaskell Setup.lhs copy --destdir="${pkgdir}"
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
More information about the arch-commits
mailing list