[arch-commits] Commit in (4 files)

Felix Yan felixonmars at gemini.archlinux.org
Sat Aug 20 20:54:05 UTC 2022


    Date: Saturday, August 20, 2022 @ 20:54:04
  Author: felixonmars
Revision: 1271202

addpkg: xmonad-extras 0.17.0-1

Added:
  xmonad-extras/
  xmonad-extras/repos/
  xmonad-extras/trunk/
  xmonad-extras/trunk/PKGBUILD

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

Added: xmonad-extras/trunk/PKGBUILD
===================================================================
--- xmonad-extras/trunk/PKGBUILD	                        (rev 0)
+++ xmonad-extras/trunk/PKGBUILD	2022-08-20 20:54:04 UTC (rev 1271202)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=xmonad-extras
+pkgver=0.17.0
+pkgrel=1
+pkgdesc="Third party extensions for xmonad with wacky dependencies"
+url="https://github.com/xmonad/xmonad-extras"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-x11' 'haskell-alsa-mixer' 'haskell-hint' 'haskell-libmpd'
+         'haskell-network' 'haskell-regex-posix' 'xmonad' 'xmonad-contrib')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('9d3a73472f3a65e2760cca25062cd3e96938ec39fe246e13db295c48d0b37c4e')
+
+build() {
+  cd $pkgname-$pkgver
+
+  runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+    --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \
+    --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+    --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
+    --ghc-option='-pie' \
+    -f-testing -fwith_brightness -fwith_hint -f-with_hlist -fwith_mpd -fwith_regex_posix -fwith_sound -fwith_template_haskell
+
+  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 -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 -t "$pkgdir"/usr/share/licenses/$pkgname/
+  rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}



More information about the arch-commits mailing list