Date: Saturday, August 20, 2022 @ 20:54:25
  Author: felixonmars
Revision: 1271203

archrelease: copy trunk to community-x86_64

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

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

Copied: xmonad-extras/repos/community-x86_64/PKGBUILD (from rev 1271202, 
xmonad-extras/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2022-08-20 20:54:25 UTC (rev 1271203)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonm...@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
+}

Reply via email to