Date: Monday, February 26, 2018 @ 20:09:09 Author: felixonmars Revision: 298770
archrelease: copy trunk to community-staging-x86_64 Added: haskell-mime-types/repos/community-staging-x86_64/ haskell-mime-types/repos/community-staging-x86_64/PKGBUILD (from rev 298769, haskell-mime-types/trunk/PKGBUILD) ----------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Copied: haskell-mime-types/repos/community-staging-x86_64/PKGBUILD (from rev 298769, haskell-mime-types/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-02-26 20:09:09 UTC (rev 298770) @@ -0,0 +1,39 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Daniel Nagy <danielnagy at gmx de> +# Contributor: hauzer <hau...@gmx.com> + +_hkgname=mime-types +pkgname=haskell-mime-types +pkgver=0.1.0.7 +pkgrel=9 +pkgdesc="Basic mime-type handling types and functions" +url="https://hackage.haskell.org/package/${_hkgname}" +license=('MIT') +arch=('x86_64') +depends=('ghc-libs' 'haskell-text') +makedepends=('ghc') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('411bc4cbb471a0f520413831e7613ede6a2f326120adba1f8acc92b12f2eb241e12323cc68d3ea829e26009b8d7728bf26b0a634b9c672c88345a6a2cc94cd8a') + +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 -fnetwork-uri + 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" +}