summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9fbba48ae747bfabf2a9c8c3c2f0c63ff611bfc8 (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
35
36
37
38
39
40
41
42
43
44
# Maintainer : Damien Flament <damien.flament___at___gmx___dot___com>:w
# Contributor: Daniel Nagy <danielnagy___at___gmx___dot___de>

pkgname=cabal2arch
pkgver=1.2
pkgrel=3
pkgdesc="Create Arch Linux packages from Cabal packages."
arch=('i686' 'x86_64')
url="http://github.com/archhaskell/${pkgname}"
license=("BSD3")
depends=()
makedepends=("ghc"
             "haskell-archlinux"
             "haskell-cmdargs"
             "haskell-mtl")
provides=()
conflicts=()
replaces=()
backup=()
options=('strip' 'staticlibs')
install=
source=("https://github.com/archhaskell/${pkgname}/archive/v${pkgver}.tar.gz"
        'Make_build_pass.patch')
noextract=()
md5sums=('68f08d55400a31927e63942f0ca5e462'
         'b22ef0e1bcc21f81b4dbd34e9599d441')
validpgpkeys=()

prepare() {
  cd ${pkgname}-${pkgver}

  patch -Np1 -i "${srcdir}/Make_build_pass.patch"
}

build() {
    cd ${pkgname}-${pkgver}
    runhaskell Setup configure -O --prefix=/usr --docdir=/usr/share/doc/${pkgname}
    runhaskell Setup build
}

package() {
    cd ${srcdir}/${pkgname}-${pkgver}
    runhaskell Setup copy --destdir=${pkgdir}
}