upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / haskell-fmlist / repos / community-x86_64 / PKGBUILD
blobf1ec116e3945ed48ff16122d5640bafe62e29f2c
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 _hkgname=fmlist
4 pkgname=haskell-fmlist
5 pkgver=0.9.4
6 pkgrel=7
7 pkgdesc="FoldMap lists"
8 url="https://github.com/sjoerdvisscher/fmlist"
9 license=('BSD')
10 arch=('x86_64')
11 depends=('ghc-libs')
12 makedepends=('ghc')
13 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
14 sha512sums=('68b36503cd895bff5f25f2d24422972537b5ba68439714de257441c14194656b0b84137fa9c45235cdb9291e8a2d132e66e9a1d45f66f91142eef65f07d8c5dc')
16 build() {
17     cd $_hkgname-$pkgver
18     
19     runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
20         --prefix=/usr --docdir=/usr/share/doc/$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
31     
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