Date: Wednesday, January 8, 2020 @ 20:11:19 Author: felixonmars Revision: 550604
archrelease: copy trunk to community-staging-x86_64 Added: haskell-panic/repos/community-staging-x86_64/ haskell-panic/repos/community-staging-x86_64/PKGBUILD (from rev 550603, haskell-panic/trunk/PKGBUILD) ----------+ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) Copied: haskell-panic/repos/community-staging-x86_64/PKGBUILD (from rev 550603, haskell-panic/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-01-08 20:11:19 UTC (rev 550604) @@ -0,0 +1,37 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=panic +pkgname=haskell-panic +pkgver=0.4.0.1 +pkgrel=9 +pkgdesc="A convenient way to panic" +url="https://github.com/yav/panic" +license=('ISC') +arch=('x86_64') +depends=('ghc-libs' 'haskell-gitrev') +makedepends=('ghc') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('7df11c15414c1513f86a236b1bb549c5cf8795e9f5120580ce5e05b2bd423914df33db79b901835987adb9726d9f24bbc8590cfb4a0a6cb2a905e667e0a4e9da') + +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" +}