diff options
author | root <root@rshg054.dnsready.net> | 2012-03-12 03:47:14 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-03-12 03:47:14 +0000 |
commit | 7e61bbcf6b3c8ffe6c076268044d83b446fceeab (patch) | |
tree | 360d89950fc40d239f428a8396bf849b06745d20 /~fauno/pandoc/SRCBUILD | |
parent | a6cb3ddef295c5feb4e03ee198dbb31cdf62d518 (diff) |
Mon Mar 12 03:47:14 UTC 2012
Diffstat (limited to '~fauno/pandoc/SRCBUILD')
-rw-r--r-- | ~fauno/pandoc/SRCBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/~fauno/pandoc/SRCBUILD b/~fauno/pandoc/SRCBUILD new file mode 100644 index 000000000..fd2172ffc --- /dev/null +++ b/~fauno/pandoc/SRCBUILD @@ -0,0 +1,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}/ +} |