summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c8a40faa49250c821405be64b6573ba417c9cbae (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
# Maintainer: Daniel Nagy <danielnagy at gmx de>

# custom variables
_hkgname=cabal2arch
_licensefile=LICENSE

# PKGBUILD options/directives
pkgname=cabal2arch
pkgver=1.2
pkgrel=2
pkgdesc="Create Arch Linux packages from Cabal packages."
url="http://github.com/archhaskell/"
license=("BSD3")
arch=('i686' 'x86_64')
makedepends=("ghc" "haskell-archlinux" "haskell-cmdargs" "haskell-mtl")
depends=()
options=('strip' 'staticlibs' )
source=("https://github.com/archhaskell/cabal2arch/archive/v1.2.tar.gz")

sha1sums=('18936e2bafb6059f56b4814216ac5874ab54fe56')

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

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