Date: Tuesday, December 28, 2021 @ 04:07:14 Author: felixonmars Revision: 1085018
archrelease: copy trunk to community-staging-x86_64 Added: haskell-text-short/repos/community-staging-x86_64/ haskell-text-short/repos/community-staging-x86_64/PKGBUILD (from rev 1085017, haskell-text-short/trunk/PKGBUILD) ----------+ PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) Copied: haskell-text-short/repos/community-staging-x86_64/PKGBUILD (from rev 1085017, haskell-text-short/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-12-28 04:07:14 UTC (rev 1085018) @@ -0,0 +1,50 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=text-short +pkgname=haskell-text-short +pkgver=0.1.4 +pkgrel=13 +pkgdesc="Memory-efficient representation of Unicode text strings" +url="https://github.com/hvr/text-short" +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-hashable') +makedepends=('ghc' 'uusi' 'haskell-quickcheck-instances' 'haskell-tasty' 'haskell-tasty-hunit' + 'haskell-tasty-quickcheck') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('e966933096f4b1a0e0cd57541d0b96ef3092b8f86969c570c9fe5863256fe1d322c1b1503efc870a5b827799a5c981f08d850f1838ea5e6f1ed5bff25290e689') + +prepare() { + cd $_hkgname-$pkgver + gen-setup +} + +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 --ghc-option=-fllvm \ + -f-asserts + 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 --show-details=direct +} + +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 "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE +}