upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / haskell-text-printer / trunk / PKGBUILD
blob28d58f66210f862347b77966f6ad269d3099f17f
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 _hkgname=text-printer
4 pkgname=haskell-text-printer
5 pkgver=0.5.0.2
6 pkgrel=71
7 pkgdesc="Abstract interface for text builders/printers."
8 url="https://github.com/mvv/text-printer"
9 license=('BSD')
10 arch=('x86_64')
11 depends=('ghc-libs' 'haskell-text-latin1')
12 makedepends=('ghc')
13 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
14 sha512sums=('b988e3d35b6783505b3407a21f94e57ebb69757b039c5dc4f16132df37270dba34c254b7c057f028454ea902b17286ce5a53dddcf0bab33a18a1dec0b558c81c')
16 build() {
17     cd $_hkgname-$pkgver
19     runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
20         --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname \
21         --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm
22     runhaskell Setup build $MAKEFLAGS
23     runhaskell Setup register --gen-script
24     runhaskell Setup unregister --gen-script
25     sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
26     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
29 package() {
30     cd $_hkgname-$pkgver
32     install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
33     install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
34     runhaskell Setup copy --destdir="$pkgdir"
35     install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
36     rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE