summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b84b5c0d891b69a560989a9a9b2672f1b7946d58 (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
# Mantainer: MCMic <come@chilliet.eu>

# PKGBUILD options/directives
pkgname=intricacy
pkgver=0.6.2
pkgrel=1
pkgdesc="A game of competitive puzzle-design"
url="http://mbays.freeshell.org/intricacy"
license=("GPL-3")
arch=('i686' 'x86_64')
makedepends=('ghc')
depends=('haskell-sdl' 'haskell-sdl-gfx' 'haskell-sdl-ttf' 'haskell-network-fancy' 'haskell-cryptohash' 'haskell-mtl' 'haskell-safe' 'haskell-stm' 'haskell-vector')
options=('strip')
source=("http://sdf.org/~mbays/${pkgname}/${pkgname}-${pkgver}.tar.gz")
sha256sums=("dce6907980d4b3e9eace2e4e5f5192459992a365d12d2c22860ff1afe2ffb5c7")

# PKGBUILD functions

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    
    runhaskell Setup configure -O --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
        -f-server -fgame -fcurses -fsdl
    runhaskell Setup build
}

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