Date: Sunday, April 13, 2014 @ 15:02:29 Author: jelle Revision: 109342
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: haskell-x11/repos/community-staging-i686/ haskell-x11/repos/community-staging-i686/PKGBUILD (from rev 109341, haskell-x11/trunk/PKGBUILD) haskell-x11/repos/community-staging-i686/hsmod.install (from rev 109341, haskell-x11/trunk/hsmod.install) haskell-x11/repos/community-staging-x86_64/ haskell-x11/repos/community-staging-x86_64/PKGBUILD (from rev 109341, haskell-x11/trunk/PKGBUILD) haskell-x11/repos/community-staging-x86_64/hsmod.install (from rev 109341, haskell-x11/trunk/hsmod.install) ----------------------------------------+ community-staging-i686/PKGBUILD | 42 +++++++++++++++++++++++++++++++ community-staging-i686/hsmod.install | 18 +++++++++++++ community-staging-x86_64/PKGBUILD | 42 +++++++++++++++++++++++++++++++ community-staging-x86_64/hsmod.install | 18 +++++++++++++ 4 files changed, 120 insertions(+) Copied: haskell-x11/repos/community-staging-i686/PKGBUILD (from rev 109341, haskell-x11/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2014-04-13 13:02:29 UTC (rev 109342) @@ -0,0 +1,42 @@ +# $Id$ +# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> +# Contributor: shild <s...@bk.ru> +# Maintainer: Vesa Kaihlavirta <ve...@iki.fi> + +_hkgname=X11 +pkgname=haskell-x11 +pkgver=1.6.1.1 +pkgrel=4 +pkgdesc="A Haskell binding to the X11 graphics library." +arch=(i686 x86_64) +url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/X11" +license=('custom:BSD3') +options=('strip') +depends=("ghc=7.8.2" "libx11" "libxinerama" "libxrandr" "haskell-data-default=0.5.3") +conflicts=(haskell-x11-extras) +install=hsmod.install +source=(http://hackage.haskell.org/packages/archive/X11/$pkgver/X11-$pkgver.tar.gz) +options=('staticlibs') +md5sums=('80638b99238f72d4cc351b4fbd7274fc') + +build() { + cd ${srcdir}/${_hkgname}-${pkgver} + runhaskell Setup configure -O --enable-split-objs --enable-shared \ + --prefix=/usr --docdir=/usr/share/doc/${pkgname} --libsubdir=\$compiler/site-local/\$pkgid + runhaskell Setup build + runhaskell Setup haddock + runhaskell Setup register --gen-script + runhaskell Setup unregister --gen-script + 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/${pkgname}/register.sh + install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh + install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries + ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname} + runhaskell Setup copy --destdir=${pkgdir} + install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE +} Copied: haskell-x11/repos/community-staging-i686/hsmod.install (from rev 109341, haskell-x11/trunk/hsmod.install) =================================================================== --- community-staging-i686/hsmod.install (rev 0) +++ community-staging-i686/hsmod.install 2014-04-13 13:02:29 UTC (rev 109342) @@ -0,0 +1,18 @@ +HS_DIR=usr/share/haskell/haskell-x11 +post_install() { + ${HS_DIR}/register.sh + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +pre_upgrade() { + ${HS_DIR}/unregister.sh +} +post_upgrade() { + ${HS_DIR}/register.sh + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +pre_remove() { + ${HS_DIR}/unregister.sh +} +post_remove() { + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} Copied: haskell-x11/repos/community-staging-x86_64/PKGBUILD (from rev 109341, haskell-x11/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2014-04-13 13:02:29 UTC (rev 109342) @@ -0,0 +1,42 @@ +# $Id$ +# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> +# Contributor: shild <s...@bk.ru> +# Maintainer: Vesa Kaihlavirta <ve...@iki.fi> + +_hkgname=X11 +pkgname=haskell-x11 +pkgver=1.6.1.1 +pkgrel=4 +pkgdesc="A Haskell binding to the X11 graphics library." +arch=(i686 x86_64) +url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/X11" +license=('custom:BSD3') +options=('strip') +depends=("ghc=7.8.2" "libx11" "libxinerama" "libxrandr" "haskell-data-default=0.5.3") +conflicts=(haskell-x11-extras) +install=hsmod.install +source=(http://hackage.haskell.org/packages/archive/X11/$pkgver/X11-$pkgver.tar.gz) +options=('staticlibs') +md5sums=('80638b99238f72d4cc351b4fbd7274fc') + +build() { + cd ${srcdir}/${_hkgname}-${pkgver} + runhaskell Setup configure -O --enable-split-objs --enable-shared \ + --prefix=/usr --docdir=/usr/share/doc/${pkgname} --libsubdir=\$compiler/site-local/\$pkgid + runhaskell Setup build + runhaskell Setup haddock + runhaskell Setup register --gen-script + runhaskell Setup unregister --gen-script + 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/${pkgname}/register.sh + install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh + install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries + ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname} + runhaskell Setup copy --destdir=${pkgdir} + install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE +} Copied: haskell-x11/repos/community-staging-x86_64/hsmod.install (from rev 109341, haskell-x11/trunk/hsmod.install) =================================================================== --- community-staging-x86_64/hsmod.install (rev 0) +++ community-staging-x86_64/hsmod.install 2014-04-13 13:02:29 UTC (rev 109342) @@ -0,0 +1,18 @@ +HS_DIR=usr/share/haskell/haskell-x11 +post_install() { + ${HS_DIR}/register.sh + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +pre_upgrade() { + ${HS_DIR}/unregister.sh +} +post_upgrade() { + ${HS_DIR}/register.sh + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +pre_remove() { + ${HS_DIR}/unregister.sh +} +post_remove() { + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +}