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

Felix Yan felixonmars at archlinux.org
Fri Apr 3 16:41:54 UTC 2020


    Date: Friday, April 3, 2020 @ 16:41:52
  Author: felixonmars
Revision: 610905

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

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

Copied: haskell-x11-xft/repos/community-staging-x86_64/PKGBUILD (from rev 610904, haskell-x11-xft/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-04-03 16:41:52 UTC (rev 610905)
@@ -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=72
+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
+    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 $_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