Date: Wednesday, January 20, 2016 @ 14:53:57 Author: fyan Revision: 158087
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: darcs/repos/community-staging-i686/ darcs/repos/community-staging-i686/PKGBUILD (from rev 158086, darcs/trunk/PKGBUILD) darcs/repos/community-staging-x86_64/ darcs/repos/community-staging-x86_64/PKGBUILD (from rev 158086, darcs/trunk/PKGBUILD) -----------------------------------+ community-staging-i686/PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++ community-staging-x86_64/PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) Copied: darcs/repos/community-staging-i686/PKGBUILD (from rev 158086, darcs/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2016-01-20 13:53:57 UTC (rev 158087) @@ -0,0 +1,50 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +pkgname=darcs +pkgver=2.10.2 +pkgrel=19 +pkgdesc="A distributed, interactive, smart revision control system" +url="http://darcs.net" +license=("GPL") +arch=('i686' 'x86_64') +depends=('curl') +makedepends=("ghc=7.10.3" "haskell-attoparsec" "haskell-base16-bytestring" + "haskell-cryptohash" "haskell-data-ordlist" "haskell-hashable" "haskell-html" + "haskell-http" "haskell-mmap" "haskell-mtl" "haskell-network" "haskell-network-uri" + "haskell-old-time" "haskell-parsec" "haskell-sandi" "haskell-random" + "haskell-regex-applicative" "haskell-regex-compat-tdfa" "haskell-tar" + "haskell-text" "haskell-transformers-compat" "haskell-unix-compat" + "haskell-utf8-string" "haskell-vector" "haskell-zip-archive" "haskell-zlib") +source=("http://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha256sums=('6337d3fac04711fa2ef5813558b409c59166c5599b0c9d68c418d21cdccfb327') + +prepare() { + sed -e 's/vector >= 0.7 && < 0.11,/vector >= 0.7 \&\& < 0.12,/' \ + -e 's/tar == 0.4.\*,/tar >= 0.4,/' \ + -e 's/HTTP >= 4000.2.3 && < 4000.3/HTTP >= 4000.2.3 \&\& < 4000.4/' \ + -e 's/transformers-compat >= 0.4 && < 0.5,/transformers-compat >= 0.4 \&\& < 0.6,/' \ + -i ${pkgname}-${pkgver}/${pkgname}.cabal +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + runhaskell Setup configure -O --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ + -fcurl -fpkgconfig -fhttp -f-static -fterminfo -fthreaded -fexecutable \ + -f-hpc -f-rts -foptimize -f-warn-as-error -f-use-local-data-map-strict \ + -f-libiconv -f-hashed-storage-diff -fuse-time-1point5 -fnetwork-uri + runhaskell Setup build +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + runhaskell Setup copy --destdir="${pkgdir}" + # Remove library and doc (license only) + rm -r "$pkgdir"/usr/{lib,share/doc} + chmod 644 "${pkgdir}/usr/share/man/man1/darcs.1" + + install -Dm644 contrib/darcs_completion "${pkgdir}/usr/share/bash-completion/completions/darcs" + install -Dm644 contrib/_darcs.zsh "${pkgdir}/usr/share/zsh/site-functions/_darcs" +} Copied: darcs/repos/community-staging-x86_64/PKGBUILD (from rev 158086, darcs/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2016-01-20 13:53:57 UTC (rev 158087) @@ -0,0 +1,50 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +pkgname=darcs +pkgver=2.10.2 +pkgrel=19 +pkgdesc="A distributed, interactive, smart revision control system" +url="http://darcs.net" +license=("GPL") +arch=('i686' 'x86_64') +depends=('curl') +makedepends=("ghc=7.10.3" "haskell-attoparsec" "haskell-base16-bytestring" + "haskell-cryptohash" "haskell-data-ordlist" "haskell-hashable" "haskell-html" + "haskell-http" "haskell-mmap" "haskell-mtl" "haskell-network" "haskell-network-uri" + "haskell-old-time" "haskell-parsec" "haskell-sandi" "haskell-random" + "haskell-regex-applicative" "haskell-regex-compat-tdfa" "haskell-tar" + "haskell-text" "haskell-transformers-compat" "haskell-unix-compat" + "haskell-utf8-string" "haskell-vector" "haskell-zip-archive" "haskell-zlib") +source=("http://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha256sums=('6337d3fac04711fa2ef5813558b409c59166c5599b0c9d68c418d21cdccfb327') + +prepare() { + sed -e 's/vector >= 0.7 && < 0.11,/vector >= 0.7 \&\& < 0.12,/' \ + -e 's/tar == 0.4.\*,/tar >= 0.4,/' \ + -e 's/HTTP >= 4000.2.3 && < 4000.3/HTTP >= 4000.2.3 \&\& < 4000.4/' \ + -e 's/transformers-compat >= 0.4 && < 0.5,/transformers-compat >= 0.4 \&\& < 0.6,/' \ + -i ${pkgname}-${pkgver}/${pkgname}.cabal +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + runhaskell Setup configure -O --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ + -fcurl -fpkgconfig -fhttp -f-static -fterminfo -fthreaded -fexecutable \ + -f-hpc -f-rts -foptimize -f-warn-as-error -f-use-local-data-map-strict \ + -f-libiconv -f-hashed-storage-diff -fuse-time-1point5 -fnetwork-uri + runhaskell Setup build +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + runhaskell Setup copy --destdir="${pkgdir}" + # Remove library and doc (license only) + rm -r "$pkgdir"/usr/{lib,share/doc} + chmod 644 "${pkgdir}/usr/share/man/man1/darcs.1" + + install -Dm644 contrib/darcs_completion "${pkgdir}/usr/share/bash-completion/completions/darcs" + install -Dm644 contrib/_darcs.zsh "${pkgdir}/usr/share/zsh/site-functions/_darcs" +}