blob: fd2172ffce74c3097e38f373c5a28553c829e453 (
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
|
# Maintainer: Nicolas Reynolds <fauno@kiwwwi.com.ar>
# Based on haskell-pandoc
# custom variables
_hkgname=pandoc
_licensefile=COPYING
# PKGBUILD options/directives
pkgname=pandoc
pkgver=1.9.1.2
pkgrel=1
pkgdesc='Conversion between markup formats (no Haskell libs)'
url='http://johnmacfarlane.net/pandoc/'
license=('GPL')
arch=('any')
makedepends=('ghc' 'sh' 'cabal-install')
source=()
# PKGBUILD functions
build() {
mkdir -p ${srcdir}/{build,${_hkgname}-${pkgver}}
cd ${srcdir}/${_hkgname}-${pkgver}
HOME=${srcdir}/${_hkgname}-${pkgver} cabal --verbose=3 update
HOME=${srcdir}/${_hkgname}-${pkgver} cabal --verbose=3 fetch ${_hkgname}-${pkgver}
}
package() {
export PKGEXT=.src.tar.xz
export PKGDEST=${startdir}
mv ${srcdir}/${_hkgname}-${pkgver} ${pkgdir}/
}
|