Date: Thursday, January 10, 2019 @ 17:12:51 Author: felixonmars Revision: 421953
archrelease: copy trunk to community-staging-x86_64 Added: haskell-dbus/repos/community-staging-x86_64/ haskell-dbus/repos/community-staging-x86_64/PKGBUILD (from rev 421952, haskell-dbus/trunk/PKGBUILD) ----------+ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) Copied: haskell-dbus/repos/community-staging-x86_64/PKGBUILD (from rev 421952, haskell-dbus/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2019-01-10 17:12:51 UTC (rev 421953) @@ -0,0 +1,45 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=dbus +pkgname=haskell-dbus +pkgver=1.2.1 +pkgrel=9 +pkgdesc="A client library for the D-Bus IPC system" +url="https://john-millikin.com/software/haskell-dbus/" +license=("GPL3") +arch=('x86_64') +depends=('ghc-libs' 'haskell-cereal' 'haskell-conduit' 'haskell-exceptions' 'haskell-lens' + 'haskell-network' 'haskell-random' 'haskell-split' 'haskell-th-lift' + 'haskell-vector' 'haskell-xml-conduit' 'haskell-xml-types') +makedepends=('ghc' 'haskell-extra' 'haskell-quickcheck' 'haskell-resourcet' 'haskell-tasty' + 'haskell-tasty-hunit' 'haskell-tasty-quickcheck') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('4e4cb11937b0a0f42d63419a2aaa37f4755d57dfe455de1b0ff9da7104f44a9d443c13e7fab05aaf61f61247c81670f30498ab8d7af1ed5ce3ff4ebbb276f558') + +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 + 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" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/license.txt" +}