summaryrefslogtreecommitdiff
path: root/~fauno/pandoc/SRCBUILD
diff options
context:
space:
mode:
Diffstat (limited to '~fauno/pandoc/SRCBUILD')
-rw-r--r--~fauno/pandoc/SRCBUILD33
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}/
+}