[arch-commits] Commit in xmonad-extras/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Aug 23 12:11:05 UTC 2022
Date: Tuesday, August 23, 2022 @ 12:11:05
Author: felixonmars
Revision: 1275249
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 1275248, xmonad-extras/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: xmonad-extras/repos/community-staging-x86_64/PKGBUILD (from rev 1275248, xmonad-extras/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-08-23 12:11:05 UTC (rev 1275249)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=xmonad-extras
+pkgver=0.17.0
+pkgrel=9
+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
+}
More information about the arch-commits
mailing list