Date: Saturday, August 3, 2019 @ 15:50:54 Author: felixonmars Revision: 497165
addpkg: haskell-configurator-pg 0.1.0.3-1 Added: haskell-configurator-pg/ haskell-configurator-pg/repos/ haskell-configurator-pg/trunk/ haskell-configurator-pg/trunk/PKGBUILD ----------+ PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) Added: haskell-configurator-pg/trunk/PKGBUILD =================================================================== --- haskell-configurator-pg/trunk/PKGBUILD (rev 0) +++ haskell-configurator-pg/trunk/PKGBUILD 2019-08-03 15:50:54 UTC (rev 497165) @@ -0,0 +1,44 @@ +# Maintainer: Felix Yan <[email protected]> +# Contributor: Arch Haskell Team <[email protected]> + +_hkgname=configurator-pg +pkgname=haskell-configurator-pg +pkgver=0.1.0.3 +pkgrel=1 +pkgdesc="Reduced parser for configurator-ng config files" +url="https://github.com/robx/configurator-pg" +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' "haskell-attoparsec" "haskell-protolude" "haskell-scientific") +makedepends=('ghc' 'haskell-hunit' 'haskell-test-framework' 'haskell-test-framework-hunit') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('07f79367517c3ebd69cc907710ef8d3cfc687305d44389283df9ffdabe5e0de5790edce8a04f25b2e0f7a6a6a4ab63d113aa01bbbcfe03c93899232a2f4a876b') + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ + -f-developer + 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 +} + +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + +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" +}
