summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6c755a05fe55992c40b79968efb838c519ea1241 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# This file was generated by https://github.com/berberman/arch-hs, please check it manually.
# Maintainer: Jonathan Birk <cafce25@gmail.com>

pkgname=lambdabot
pkgver=5.3.0.2
pkgrel=1
pkgdesc="Lambdabot is a development tool and advanced IRC bot"
url="https://wiki.haskell.org/Lambdabot"
license=("custom:GPL")
arch=('x86_64')
depends=('ghc-libs' 'haskell-lambdabot-core' 'haskell-lambdabot-haskell-plugins' 'haskell-lambdabot-irc-plugins' 'haskell-lambdabot-misc-plugins' 'haskell-lambdabot-novelty-plugins' 'haskell-lambdabot-reference-plugins' 'haskell-lambdabot-social-plugins')
makedepends=('ghc')
source=("https://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('e70dcef22c65987aa536c4b1cdedb471d1b496b26ba133a0a71d6f1dffe3b830')

build() {
  cd $pkgname-$pkgver

  runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
    --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
    --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
    --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
    --ghc-option='-pie'

  runhaskell Setup build
}

package() {
  cd $pkgname-$pkgver

  runhaskell Setup copy --destdir="$pkgdir"
  install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
  rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
}