Date: Sunday, March 31, 2019 @ 08:15:40 Author: felixonmars Revision: 446539
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 446538, haskell-x11-xft/trunk/PKGBUILD) ----------+ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) Copied: haskell-x11-xft/repos/community-staging-x86_64/PKGBUILD (from rev 446538, haskell-x11-xft/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2019-03-31 08:15:40 UTC (rev 446539) @@ -0,0 +1,37 @@ +# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> + +_hkgname=X11-xft +pkgname=haskell-x11-xft +pkgver=0.3.1 +pkgrel=42 +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" +}