Date: Friday, April 7, 2017 @ 05:17:46 Author: felixonmars Revision: 221167
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: haskell-safecopy/repos/community-staging-i686/ haskell-safecopy/repos/community-staging-i686/PKGBUILD (from rev 221166, haskell-safecopy/trunk/PKGBUILD) haskell-safecopy/repos/community-staging-x86_64/ haskell-safecopy/repos/community-staging-x86_64/PKGBUILD (from rev 221166, haskell-safecopy/trunk/PKGBUILD) -----------------------------------+ community-staging-i686/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++ community-staging-x86_64/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) Copied: haskell-safecopy/repos/community-staging-i686/PKGBUILD (from rev 221166, haskell-safecopy/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2017-04-07 05:17:46 UTC (rev 221167) @@ -0,0 +1,38 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=safecopy +pkgname=haskell-safecopy +pkgver=0.9.3.1 +pkgrel=2 +pkgdesc="Binary serialization with version control." +url="http://acid-state.seize.it/safecopy" +license=('custom:PublicDomain') +arch=('i686' 'x86_64') +depends=('ghc=8.0.1' 'haskell-cereal' 'haskell-old-time' 'haskell-text' 'haskell-vector') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('0ecd40fe0567a0a1363ec6d8f1c95b0436d6565efac7d0d5fc1874d4337eb4d4bc0ce5816a9adabbfb7b9f77b04826d2a6df9a4a4b19550efea4032fa000c403') + +build() { + cd "${srcdir}/${_hkgname}-${pkgver}" + + runhaskell Setup configure -O --enable-library-profiling --enable-shared \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ + --libsubdir=\$compiler/site-local/\$pkgid + runhaskell Setup build + runhaskell Setup haddock --hoogle --html + 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}/${_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" + 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}" +} Copied: haskell-safecopy/repos/community-staging-x86_64/PKGBUILD (from rev 221166, haskell-safecopy/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2017-04-07 05:17:46 UTC (rev 221167) @@ -0,0 +1,38 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=safecopy +pkgname=haskell-safecopy +pkgver=0.9.3.1 +pkgrel=2 +pkgdesc="Binary serialization with version control." +url="http://acid-state.seize.it/safecopy" +license=('custom:PublicDomain') +arch=('i686' 'x86_64') +depends=('ghc=8.0.1' 'haskell-cereal' 'haskell-old-time' 'haskell-text' 'haskell-vector') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('0ecd40fe0567a0a1363ec6d8f1c95b0436d6565efac7d0d5fc1874d4337eb4d4bc0ce5816a9adabbfb7b9f77b04826d2a6df9a4a4b19550efea4032fa000c403') + +build() { + cd "${srcdir}/${_hkgname}-${pkgver}" + + runhaskell Setup configure -O --enable-library-profiling --enable-shared \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ + --libsubdir=\$compiler/site-local/\$pkgid + runhaskell Setup build + runhaskell Setup haddock --hoogle --html + 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}/${_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" + 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}" +}