Date: Sunday, September 4, 2022 @ 09:11:14
  Author: felixonmars
Revision: 1292815

archrelease: copy trunk to community-staging-x86_64

Added:
  xmonad-extras/repos/community-staging-x86_64/
  xmonad-extras/repos/community-staging-x86_64/PKGBUILD
    (from rev 1292814, xmonad-extras/trunk/PKGBUILD)

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

Copied: xmonad-extras/repos/community-staging-x86_64/PKGBUILD (from rev 
1292814, xmonad-extras/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-09-04 09:11:14 UTC (rev 1292815)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+pkgname=xmonad-extras
+pkgver=0.17.0
+pkgrel=31
+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=-fllvm \
+    --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 $MAKEFLAGS
+  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
+}

Reply via email to