[arch-commits] Commit in haskell-x11-xft/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu May 17 16:49:37 UTC 2018
Date: Thursday, May 17, 2018 @ 16:49:36
Author: felixonmars
Revision: 323892
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 323891, haskell-x11-xft/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: haskell-x11-xft/repos/community-staging-x86_64/PKGBUILD (from rev 323891, haskell-x11-xft/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-05-17 16:49:36 UTC (rev 323892)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+_hkgname=X11-xft
+pkgname=haskell-x11-xft
+pkgver=0.3.1
+pkgrel=32
+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=1.8' '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 "${srcdir}/${_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 "${srcdir}/${_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