upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / haskell-entropy / repos / community-x86_64 / PKGBUILD
blob09c1c5c8b624b620be08dd66483c278e9ee94957
1 # Maintainer: Sergej Pupykin <arch+pub@sergej.pp.ru>
2 # Maintainer: Daniel Nagy <danielnagy at gmx de>
4 pkgname=haskell-entropy
5 pkgver=0.4.1.10
6 pkgrel=1
7 pkgdesc="A mostly platform independent (not GHCJS) method to obtain cryptographically strong entropy"
8 url="https://hackage.haskell.org/package/entropy"
9 license=('BSD')
10 arch=('x86_64')
11 depends=('ghc-libs')
12 makedepends=('ghc')
13 source=(https://hackage.haskell.org/packages/archive/entropy/${pkgver}/entropy-${pkgver}.tar.gz)
14 sha512sums=('521dded7ae41cc532993236d0ced394f98f495c0c8950201064d17430ee6599d9cd6f3a4f17a19429396ee4a34a3fa17b39af49f4fee730efdae3d42d134c96e')
16 build() {
17     cd "${srcdir}/entropy-${pkgver}"
18     
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 "${srcdir}/entropy-${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