[arch-commits] Commit in haskell-x11-xft/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Thu Nov 18 02:02:52 UTC 2021


    Date: Thursday, November 18, 2021 @ 02:02:52
  Author: felixonmars
Revision: 1051647

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 1051646, haskell-x11-xft/trunk/PKGBUILD)

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

Copied: haskell-x11-xft/repos/community-staging-x86_64/PKGBUILD (from rev 1051646, haskell-x11-xft/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-18 02:02:52 UTC (rev 1051647)
@@ -0,0 +1,37 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+_hkgname=X11-xft
+pkgname=haskell-x11-xft
+pkgver=0.3.1
+pkgrel=187
+pkgdesc="Bindings to the Xft, X Free Type interface library, and some Xrender parts"
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=('LGPL')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-x11' 'haskell-utf8-string' 'libxft')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/X11-xft/$pkgver/X11-xft-$pkgver.tar.gz)
+sha512sums=('8f40db25453227ef9ce53b05a0c6af869e3a2efdb1d9b9ad683baf52601f320c85b09f0e514bb6ffeb17516d9b75c6772aa49613bb96272d56f06788118b7cfe')
+
+build() {
+    cd $_hkgname-$pkgver
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname \
+        --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