[arch-commits] Commit in haskell-x11-xft/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Fri May 13 08:00:25 UTC 2022
Date: Friday, May 13, 2022 @ 08:00:25
Author: felixonmars
Revision: 1200845
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-x11-xft/repos/community-staging-x86_64/
haskell-x11-xft/repos/community-staging-x86_64/PKGBUILD
(from rev 1200844, haskell-x11-xft/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: haskell-x11-xft/repos/community-staging-x86_64/PKGBUILD (from rev 1200844, haskell-x11-xft/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-05-13 08:00:25 UTC (rev 1200845)
@@ -0,0 +1,42 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+_hkgname=X11-xft
+pkgname=haskell-x11-xft
+pkgver=0.3.4
+pkgrel=8
+pkgdesc="Bindings to the Xft and some Xrender parts"
+url="https://github.com/xmonad/X11-xft"
+license=('LGPL')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-x11' 'haskell-utf8-string' 'libxft')
+makedepends=('ghc' 'uusi')
+source=(https://hackage.haskell.org/packages/archive/X11-xft/$pkgver/X11-xft-$pkgver.tar.gz)
+sha512sums=('cd7c10bbe21f096814ebbf1015f4492ee60e73032bbb114f8fa5684e46f96239814f6986d44955642509c06b790112a38194661754e23c874dfe9446b0c13eef')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ gen-setup
+}
+
+build() {
+ cd $_hkgname-$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
+ 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 $_hkgname-$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 "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list