diff options
author | André Fabian Silva Delgado <andre@pc-01.localdomain> | 2012-03-12 00:08:10 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <andre@pc-01.localdomain> | 2012-03-12 00:08:10 -0300 |
commit | 285ed17ae15f5ccc02a81bb0f6de23daa5ed8a14 (patch) | |
tree | 81c0536eabedd15b826084bfbdc41b67d8dcc8e0 /~fauno/pandoc/SRCBUILD | |
parent | 78774b86dcb77599ec3def35a6d70591cb0a1b87 (diff) | |
parent | a87bb67621f30b249213bd8e0edf5c480a0cd6b8 (diff) |
Merge ssh://parabolagnulinux.org:1863/abslibre
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}/ +} |