[arch-commits] Commit in cabal-helper/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Tue Aug 15 21:03:25 UTC 2017
Date: Tuesday, August 15, 2017 @ 21:03:24
Author: felixonmars
Revision: 251192
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
cabal-helper/repos/community-staging-i686/
cabal-helper/repos/community-staging-i686/PKGBUILD
(from rev 251191, cabal-helper/trunk/PKGBUILD)
cabal-helper/repos/community-staging-x86_64/
cabal-helper/repos/community-staging-x86_64/PKGBUILD
(from rev 251191, cabal-helper/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++
2 files changed, 100 insertions(+)
Copied: cabal-helper/repos/community-staging-i686/PKGBUILD (from rev 251191, cabal-helper/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-08-15 21:03:24 UTC (rev 251192)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=cabal-helper
+pkgver=0.7.3.0
+pkgrel=6
+pkgdesc="Simple interface to some of Cabals configuration state used by ghc-mod"
+url="https://hackage.haskell.org/package/${pkgname}"
+license=("AGPL3")
+arch=('i686' 'x86_64')
+depends=('ghc-libs' "haskell-mtl" "haskell-temporary" "haskell-utf8-string")
+conflicts=('haskell-cabal-helper')
+replaces=('haskell-cabal-helper')
+makedepends=('ghc')
+source=('https://github.com/achirkin/cabal-helper/archive/68ceff5916f515e3026a3f40aa44570e47d50a0c.tar.gz')
+#source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+sha256sums=('de0023c7e47be3030986a2b0e40bc5693096f2dd9a60de40c2111a29b66b0956')
+
+prepare() {
+ mv $pkgname-68ceff5916f515e3026a3f40aa44570e47d50a0c $pkgname-$pkgver
+ sed -i 's/import Distribution.Version/import Distribution.Version hiding (showVersion)/' $pkgname-$pkgver/CabalHelper/{Sandbox.hs,Compile.hs,Wrapper.hs}
+ sed -i 's/, process.*/, process/' $pkgname-$pkgver/$pkgname.cabal
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --libexecdir="/usr/lib" \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+ -f-dev
+ 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 "${srcdir}/${pkgname}-${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"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
+}
Copied: cabal-helper/repos/community-staging-x86_64/PKGBUILD (from rev 251191, cabal-helper/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-08-15 21:03:24 UTC (rev 251192)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=cabal-helper
+pkgver=0.7.3.0
+pkgrel=6
+pkgdesc="Simple interface to some of Cabals configuration state used by ghc-mod"
+url="https://hackage.haskell.org/package/${pkgname}"
+license=("AGPL3")
+arch=('i686' 'x86_64')
+depends=('ghc-libs' "haskell-mtl" "haskell-temporary" "haskell-utf8-string")
+conflicts=('haskell-cabal-helper')
+replaces=('haskell-cabal-helper')
+makedepends=('ghc')
+source=('https://github.com/achirkin/cabal-helper/archive/68ceff5916f515e3026a3f40aa44570e47d50a0c.tar.gz')
+#source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+sha256sums=('de0023c7e47be3030986a2b0e40bc5693096f2dd9a60de40c2111a29b66b0956')
+
+prepare() {
+ mv $pkgname-68ceff5916f515e3026a3f40aa44570e47d50a0c $pkgname-$pkgver
+ sed -i 's/import Distribution.Version/import Distribution.Version hiding (showVersion)/' $pkgname-$pkgver/CabalHelper/{Sandbox.hs,Compile.hs,Wrapper.hs}
+ sed -i 's/, process.*/, process/' $pkgname-$pkgver/$pkgname.cabal
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --libexecdir="/usr/lib" \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+ -f-dev
+ 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 "${srcdir}/${pkgname}-${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"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
+}
More information about the arch-commits
mailing list