Date: Tuesday, April 13, 2021 @ 11:29:48 Author: felixonmars Revision: 917089
archrelease: copy trunk to community-staging-x86_64 Added: haskell-safecopy/repos/community-staging-x86_64/ haskell-safecopy/repos/community-staging-x86_64/PKGBUILD (from rev 917088, haskell-safecopy/trunk/PKGBUILD) ----------+ PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) Copied: haskell-safecopy/repos/community-staging-x86_64/PKGBUILD (from rev 917088, haskell-safecopy/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-04-13 11:29:48 UTC (rev 917089) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=safecopy +pkgname=haskell-safecopy +pkgver=0.10.4.1 +pkgrel=14 +pkgdesc="Binary serialization with version control." +url="http://acid-state.seize.it/safecopy" +license=('custom:PublicDomain') +arch=('x86_64') +depends=('ghc-libs' 'haskell-cereal' 'haskell-generic-data' 'haskell-old-time' 'haskell-vector') +makedepends=('ghc' 'uusi' 'haskell-hunit' 'haskell-lens' 'haskell-lens-action' 'haskell-quickcheck' + 'haskell-quickcheck-instances' 'haskell-tasty' 'haskell-tasty-quickcheck') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('49e652d02b321fb98566b316366b11e9734119a3e82b4bb114ace639e2b6b9afc2b67feec5fc0d183b05ef3c40e5cc8e434b8edf969c6250eddc60ca3b82219e') + +prepare() { + cd $_hkgname-$pkgver + uusi -u lens $_hkgname.cabal +} + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid + runhaskell Setup build $MAKEFLAGS + 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 +} + +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + +package() { + cd $_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 + runhaskell Setup copy --destdir="$pkgdir" +}