1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 pkgname=haskell-bytestring-show
6 pkgdesc="Efficient conversion of values into readable byte strings."
7 url="https://hackage.haskell.org/package/bytestring-show"
11 makedepends=('ghc' 'uusi')
12 source=("https://hackage.haskell.org/packages/archive/bytestring-show/${pkgver}/bytestring-show-${pkgver}.tar.gz"
14 sha512sums=('f59a041e30ec3b3eb9f971968606685ba5968dafc44d92ed50c9f7f124b891f48fc6612fdfc1a57f702e76e41f70c647e81c1919ab7fee194db9d97ddd73dd10'
15 'cb78ab44527773ddc20565fff66bad6e7453a554cf39b1ab82d24e44699a22087867ad51c6cb64b6d6979323bc46779e6dfc92f8ba7aa6f31b4b44d0923d7b92')
18 cd bytestring-show-$pkgver
19 patch -p1 -i ../ghc9.patch
24 cd "$srcdir"/bytestring-show-${pkgver}
26 runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
27 --prefix=/usr --docdir=/usr/share/doc/$pkgname \
28 --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm
29 runhaskell Setup build $MAKEFLAGS
30 runhaskell Setup register --gen-script
31 runhaskell Setup unregister --gen-script
32 sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
33 sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
37 cd "${srcdir}/bytestring-show-${pkgver}"
39 install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
40 install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
41 runhaskell Setup copy --destdir="$pkgdir"
42 install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
43 rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE