[arch-commits] Commit in haskell-x11/repos (6 files)
Evangelos Foutras
foutrelis at archlinux.org
Thu Sep 10 21:43:20 UTC 2015
Date: Thursday, September 10, 2015 @ 23:43:20
Author: foutrelis
Revision: 139886
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 139885, haskell-x11/trunk/PKGBUILD)
haskell-x11/repos/community-staging-i686/hsmod.install
(from rev 139885, haskell-x11/trunk/hsmod.install)
haskell-x11/repos/community-staging-x86_64/
haskell-x11/repos/community-staging-x86_64/PKGBUILD
(from rev 139885, haskell-x11/trunk/PKGBUILD)
haskell-x11/repos/community-staging-x86_64/hsmod.install
(from rev 139885, 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 139885, haskell-x11/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-09-10 21:43:20 UTC (rev 139886)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: shild <sxp at bk.ru>
+# Maintainer: Vesa Kaihlavirta <vegai at iki.fi>
+
+_hkgname=X11
+pkgname=haskell-x11
+pkgver=1.6.1.2
+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.10.1" "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=('d7c94a65ce4b140e97cce835e8682ac3')
+
+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 139885, haskell-x11/trunk/hsmod.install)
===================================================================
--- community-staging-i686/hsmod.install (rev 0)
+++ community-staging-i686/hsmod.install 2015-09-10 21:43:20 UTC (rev 139886)
@@ -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 139885, haskell-x11/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-09-10 21:43:20 UTC (rev 139886)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: shild <sxp at bk.ru>
+# Maintainer: Vesa Kaihlavirta <vegai at iki.fi>
+
+_hkgname=X11
+pkgname=haskell-x11
+pkgver=1.6.1.2
+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.10.1" "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=('d7c94a65ce4b140e97cce835e8682ac3')
+
+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 139885, haskell-x11/trunk/hsmod.install)
===================================================================
--- community-staging-x86_64/hsmod.install (rev 0)
+++ community-staging-x86_64/hsmod.install 2015-09-10 21:43:20 UTC (rev 139886)
@@ -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)
+}
More information about the arch-commits
mailing list