Date: Tuesday, October 2, 2018 @ 06:31:08 Author: felixonmars Revision: 388961
archrelease: copy trunk to community-staging-x86_64 Added: haskell-juicypixels/repos/community-staging-x86_64/ haskell-juicypixels/repos/community-staging-x86_64/PKGBUILD (from rev 388960, haskell-juicypixels/trunk/PKGBUILD) ----------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Copied: haskell-juicypixels/repos/community-staging-x86_64/PKGBUILD (from rev 388960, haskell-juicypixels/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-10-02 06:31:08 UTC (rev 388961) @@ -0,0 +1,39 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=JuicyPixels +pkgname=haskell-juicypixels +pkgver=3.3.2 +pkgrel=1 +pkgdesc="Picture loading/serialization (in png, jpeg, bitmap, gif, tga, tiff and radiance)" +url="https://github.com/Twinside/Juicy.Pixels" +license=("custom:BSD3") +arch=('x86_64') +depends=('ghc-libs' "haskell-primitive" "haskell-vector" "haskell-zlib") +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('2c47715b62d1ec7f0ca7e282092c4df883f34bcb71ab55d33fc09fb8a220761bd64e11d5155094a8383ab2df9ec21d2b866fed0ab7b8ec25a3e8f134c8dfce07') + +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 \ + -f-mmap + 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" +}