archrelease: copy trunk to community-any
[ArchLinux/community.git] / haskell-basic-prelude / repos / community-x86_64 / PKGBUILD
blob482d0a1ba9940c4ac15b022a4ce519162f9ae3fd
1 # Maintainer: Jelle van der Waa <jelle@archlinux.org>
3 _hkgname=basic-prelude
4 pkgname=haskell-basic-prelude
5 pkgver=0.7.0
6 pkgrel=229
7 pkgdesc='An enhanced core prelude; a common foundation for alternate preludes'
8 arch=(x86_64)
9 url="https://hackage.haskell.org/package/$_hkgname"
10 license=(MIT)
11 depends=(ghc-libs haskell-hashable haskell-unordered-containers haskell-vector)
12 makedepends=(ghc)
13 source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
14 sha512sums=('34b62d1cdddb8d5c5ec51f0b9cca8746174f2daf40e5fe0f0188707da1f590844bffccfc6d049e8e161323f541281130aa92700514455a947c503274422e271f')
16 build() {
17   cd $_hkgname-$pkgver
18   runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
19       --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname \
20       --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm
21   runhaskell Setup build $MAKEFLAGS
22   runhaskell Setup register --gen-script
23   runhaskell Setup unregister --gen-script
24   sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
25   sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
28 package() {
29   cd $_hkgname-$pkgver
30   install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
31   install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
32   runhaskell Setup copy --destdir="$pkgdir"
33   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
34   rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
37 # vim: ts=2 sw=2 et: