summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 380d7423325ce0feac04e8425a4a8aa2eba94c29 (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
# Maintainer: favonia <favonia@gmail.com>

pkgname=lhs2tex
pkgver=1.24
pkgrel=1
pkgdesc="Preprocessor for typesetting Haskell sources with LaTeX"
url="https://www.andres-loeh.de/lhs2tex/"
license=("GPL")
source=("https://hackage.haskell.org/package/$pkgname/$pkgname-$pkgver.tar.gz"
        "force-dynamic.diff")
makedepends=('ghc')
depends=('ghc-libs' 'haskell-regex-compat' 'texlive-latexextra')
arch=('x86_64')
md5sums=('c2e9056c74fcbd3c5de3e5027ad78bf2'
         '7b3687d3b7143e3b18abdf2926696189')

build() {
    cd ${srcdir}/${pkgname}-${pkgver}
    patch < "../../force-dynamic.diff"
    ./configure --prefix=/usr
    make
}

package(){
    cd ${srcdir}/${pkgname}-${pkgver}
    make DESTDIR=${pkgdir} install
}