Date: Tuesday, October 6, 2020 @ 23:40:12 Author: felixonmars Revision: 719949
archrelease: copy trunk to community-staging-x86_64 Added: haskell-ranged-sets/repos/community-staging-x86_64/ haskell-ranged-sets/repos/community-staging-x86_64/PKGBUILD (from rev 719948, haskell-ranged-sets/trunk/PKGBUILD) ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Copied: haskell-ranged-sets/repos/community-staging-x86_64/PKGBUILD (from rev 719948, haskell-ranged-sets/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-10-06 23:40:12 UTC (rev 719949) @@ -0,0 +1,42 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=Ranged-sets +pkgname=haskell-ranged-sets +pkgver=0.4.0 +pkgrel=53 +pkgdesc="Ranged sets for Haskell" +url="https://code.haskell.org/ranged-sets" +license=('BSD') +arch=('x86_64') +depends=('ghc-libs' 'haskell-hunit' 'haskell-quickcheck') +makedepends=('ghc') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('9dc63ab9f31c6233b7f663c2674d8bd95bb9ea8ab6eb6ba04a634e9596e861c003b82f1c8d04e289e64b2edf4f2b64afca36e688727edd281eb7f571fb605f92') + +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" + install -D -m644 "LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.txt" +}