# Maintainer: Chan Beom Park _hkgname=threadscope pkgname=haskell-threadscope pkgver=0.2.10 pkgrel=1 pkgdesc="A graphical viewer for thread profile information generated by the Glasgow Haskell compiler (GHC)." url="http://hackage.haskell.org/package/${_hkgname}" arch=('x86_64') license=('custom:BSD3') depends=('ghc-libs' 'haskell-cairo' 'haskell-ghc-events' 'haskell-glib' 'haskell-gtk2' 'haskell-mtl' 'haskell-pango' 'haskell-text' 'haskell-file-embed') makedepends=('ghc') source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") sha512sums=('9b2826a32f044c0b4882249a43904902a6e1e10acf3c300a6053948e7d10dcd7de0669f448c1530f22148ba45ae819b7bdbe48f57d1d2bcf14d473a1048908dc') build() { cd "${srcdir}/${_hkgname}-${pkgver}" runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid runhaskell Setup build } package() { cd "${srcdir}/${_hkgname}-${pkgver}" runhaskell Setup copy --destdir="${pkgdir}" install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" }