summaryrefslogtreecommitdiff
path: root/~fauno/pandoc/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-11-22 14:05:07 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-11-22 14:05:07 -0300
commitc5d0267480dce7ea1149cae6f63111678588c772 (patch)
treed06726989018701c05b8c93b1b548f14cfc541f3 /~fauno/pandoc/PKGBUILD
parenta221a452890917ec65b617a0be21b472a63e2a81 (diff)
parent13c6302fab6118693af345756375923b9fb7da69 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/allegro/PKGBUILD community/erlang/PKGBUILD community/python-openbabel/PKGBUILD core/vi/PKGBUILD extra/accountsservice/PKGBUILD extra/calligra/PKGBUILD kde-unstable/kactivities/PKGBUILD kde-unstable/kdeaccessibility-jovie/PKGBUILD kde-unstable/kdeaccessibility-kaccessible/PKGBUILD kde-unstable/kdeaccessibility-kmag/PKGBUILD kde-unstable/kdeaccessibility-kmousetool/PKGBUILD kde-unstable/kdeaccessibility-kmouth/PKGBUILD kde-unstable/kdeadmin/PKGBUILD kde-unstable/kdeartwork/PKGBUILD kde-unstable/kdebase-konsole/PKGBUILD kde-unstable/kdebase-workspace/PKGBUILD kde-unstable/kdebase-workspace/kde-np.pam kde-unstable/kdebase-workspace/kde.pam kde-unstable/kdebase-workspace/kdebase-workspace.install kde-unstable/kdebase/PKGBUILD kde-unstable/kdebindings-kimono/PKGBUILD kde-unstable/kdebindings-korundum/PKGBUILD kde-unstable/kdebindings-korundum/ruby19.patch kde-unstable/kdebindings-kross/PKGBUILD kde-unstable/kdebindings-perlkde/PKGBUILD kde-unstable/kdebindings-perlqt/PKGBUILD kde-unstable/kdebindings-python/PKGBUILD kde-unstable/kdebindings-qtruby/PKGBUILD kde-unstable/kdebindings-qyoto/PKGBUILD kde-unstable/kdebindings-smokegen/PKGBUILD kde-unstable/kdebindings-smokekde/PKGBUILD kde-unstable/kdebindings-smokeqt/PKGBUILD kde-unstable/kdeedu-analitza/PKGBUILD kde-unstable/kdeedu-blinken/PKGBUILD kde-unstable/kdeedu-cantor/PKGBUILD kde-unstable/kdeedu-kalgebra/PKGBUILD kde-unstable/kdeedu-kalzium/PKGBUILD kde-unstable/kdeedu-kalzium/kdeedu-kalzium.install kde-unstable/kdeedu-kanagram/PKGBUILD kde-unstable/kdeedu-kbruch/PKGBUILD kde-unstable/kdeedu-kgeography/PKGBUILD kde-unstable/kdeedu-khangman/PKGBUILD kde-unstable/kdeedu-kig/PKGBUILD kde-unstable/kdeedu-kiten/PKGBUILD kde-unstable/kdeedu-klettres/PKGBUILD kde-unstable/kdeedu-kmplot/PKGBUILD kde-unstable/kdeedu-kstars/PKGBUILD kde-unstable/kdeedu-ktouch/PKGBUILD kde-unstable/kdeedu-kturtle/PKGBUILD kde-unstable/kdeedu-kwordquiz/PKGBUILD kde-unstable/kdeedu-marble/PKGBUILD kde-unstable/kdeedu-marble/kdeedu-marble.install kde-unstable/kdeedu-pairs/PKGBUILD kde-unstable/kdeedu-parley/PKGBUILD kde-unstable/kdeedu-rocs/PKGBUILD kde-unstable/kdeedu-step/PKGBUILD kde-unstable/kdegraphics-gwenview/PKGBUILD kde-unstable/kdegraphics-kamera/PKGBUILD kde-unstable/kdegraphics-kcolorchooser/PKGBUILD kde-unstable/kdegraphics-kgamma/PKGBUILD kde-unstable/kdegraphics-kolourpaint/PKGBUILD kde-unstable/kdegraphics-kruler/PKGBUILD kde-unstable/kdegraphics-ksaneplugin/PKGBUILD kde-unstable/kdegraphics-ksnapshot/PKGBUILD kde-unstable/kdegraphics-mobipocket/PKGBUILD kde-unstable/kdegraphics-okular/PKGBUILD kde-unstable/kdegraphics-strigi-analyzer/PKGBUILD kde-unstable/kdegraphics-svgpart/PKGBUILD kde-unstable/kdegraphics-thumbnailers/PKGBUILD kde-unstable/kdemultimedia-audiocd-kio/PKGBUILD kde-unstable/kdemultimedia-dragonplayer/PKGBUILD kde-unstable/kdemultimedia-ffmpegthumbs/PKGBUILD kde-unstable/kdemultimedia-juk/PKGBUILD kde-unstable/kdemultimedia-kmix/PKGBUILD kde-unstable/kdemultimedia-kscd/PKGBUILD kde-unstable/kdemultimedia-mplayerthumbs/PKGBUILD kde-unstable/kdenetwork/PKGBUILD kde-unstable/kdepim-runtime/PKGBUILD kde-unstable/kdepim/PKGBUILD kde-unstable/kdepim/fix-build.patch kde-unstable/kdepimlibs/PKGBUILD kde-unstable/kdeplasma-addons/PKGBUILD kde-unstable/kdesdk-kate/PKGBUILD kde-unstable/kdesdk-kate/pkgbuild-syntax-highlight.patch kde-unstable/kdesdk/PKGBUILD kde-unstable/kdetoys/PKGBUILD kde-unstable/kdeutils-filelight/PKGBUILD kde-unstable/kdeutils-kcalc/PKGBUILD kde-unstable/kdeutils-kcharselect/PKGBUILD kde-unstable/kdeutils-kdf/PKGBUILD kde-unstable/kdeutils-kfloppy/PKGBUILD kde-unstable/kdeutils-kgpg/PKGBUILD kde-unstable/kdeutils-kremotecontrol/PKGBUILD kde-unstable/kdeutils-ktimer/PKGBUILD kde-unstable/kdeutils-kwallet/PKGBUILD kde-unstable/kdeutils-superkaramba/PKGBUILD kde-unstable/kdeutils-sweeper/PKGBUILD kde-unstable/kdewebdev/PKGBUILD kde-unstable/libkcddb/PKGBUILD kde-unstable/libkcompactdisc/PKGBUILD kde-unstable/libkdcraw/PKGBUILD kde-unstable/libkdeedu/PKGBUILD kde-unstable/libkexiv2/PKGBUILD kde-unstable/libkipi/PKGBUILD kde-unstable/libksane/PKGBUILD kde-unstable/nepomuk-core/PKGBUILD
Diffstat (limited to '~fauno/pandoc/PKGBUILD')
-rw-r--r--~fauno/pandoc/PKGBUILD71
1 files changed, 36 insertions, 35 deletions
diff --git a/~fauno/pandoc/PKGBUILD b/~fauno/pandoc/PKGBUILD
index 3d7d1fa9f..d3b88d3a0 100644
--- a/~fauno/pandoc/PKGBUILD
+++ b/~fauno/pandoc/PKGBUILD
@@ -4,8 +4,8 @@
# Run `makepkg -srp SRCBUILD` if you want to update the source tarball
pkgname=pandoc
-pkgver=1.9.4.2
-pkgrel=2
+pkgver=1.9.4.5
+pkgrel=3
pkgdesc='Conversion between markup formats (no Haskell libs)'
url='http://johnmacfarlane.net/pandoc/'
license=('GPL')
@@ -15,53 +15,54 @@ options=(strip !makeflags !distcc)
source=(https://repo.parabolagnulinux.org/other/${pkgname}-${pkgver}-$pkgrel-any.src.tar.xz{,.sig} SRCBUILD)
conflicts=('haskell-pandoc')
optdepends=('texlive-most: for pdf creation')
-md5sums=('15f522c6bd0e26c709579b0a0fcfdcea'
- 'e86da5aad2a7dfc6d53d2a2a0c562baa'
- '415bbf263863c5cbc7c672ec1f497893')
# PKGBUILD functions
build() {
mkdir -p ${srcdir}/{build,${pkgname}-${pkgver}}
cd ${srcdir}/${pkgname}-${pkgver}
- for _hkpkg in $(grep -v ${pkgname}-${pkgver} BUILDORDER); do
- pushd ${srcdir}/${pkgname}-${pkgver}/${_hkpkg}
-
- HOME=${srcdir}/${pkgname}-${pkgver} \
- cabal install --flags="embed_data_files" --prefix=${srcdir}/build/usr
-
- popd
- done
-
- cd ${srcdir}/${pkgname}-${pkgver}/${pkgname}-${pkgver}
-
- HOME=${srcdir}/${pkgname}-${pkgver} \
- cabal configure --prefix=/usr --libdir=${srcdir}/build/usr/lib --flags="-library embed_data_files"
- HOME=${srcdir}/${pkgname}-${pkgver} \
- cabal build
+ while read _hkpkg; do
+ pushd ${srcdir}/${pkgname}-${pkgver}/${_hkpkg} >/dev/null
+
+ extra="--prefix=${srcdir}/build/usr"
+ case $_hkpkg in
+ $pkgname-$pkgver)
+ extra="--flags=\"executable -library\" --prefix=/usr --libdir=${srcdir}/build/usr/lib -v" ;;
+ citeproc-hs-*)
+ extra="--flags=\"embed_data_files\" --prefix=${srcdir}/build/usr -v" ;;
+ esac
+
+ msg2 "Configuring $_hkpkg with $extra"
+ if [ "$_hkpkg" != "$pkgname-$pkgver" ]; then
+ HOME=${srcdir}/${pkgname}-${pkgver} \
+ cabal install $extra
+ else
+ HOME=${srcdir}/${pkgname}-${pkgver} \
+ cabal configure $extra
+ HOME=${srcdir}/${pkgname}-${pkgver} \
+ cabal build
+ fi
+
+ popd >/dev/null
+ done <BUILDORDER
}
package() {
+ cd ${srcdir}/${pkgname}-${pkgver}/${pkgname}-${pkgver}
- cd ${srcdir}/${pkgname}-${pkgver}/${pkgname}-${pkgver}
+ runghc Setup.hs copy --destdir=${pkgdir}/
- runghc Setup.hs copy --destdir=${pkgdir}/
+ msg2 "Removing lib files..."
+ rm -rfv ${pkgdir}/build
# EC is unfree and makes Parabola TeXLive cry
# besides, it's unneeded
- sed "/fontenc/d" -i ${pkgdir}/usr/share/${pkgname}-${pkgver}/templates/default.latex
-
-# runghc Setup.hs configure --prefix=DIR --bindir=DIR --libdir=DIR \
-# --datadir=DIR --libsubdir=DIR --datasubdir=DIR --docdir=DIR \
-# --htmldir=DIR --program-prefix=PREFIX --program-suffix=SUFFIX \
-# --mandir=DIR --flags=FLAGSPEC
-
-# Copy everything, but remove docs and haskell-libs
-# rm -r ${pkgdir}/usr/{lib,share/*}
+ sed "/fontenc/d" -i ${pkgdir}/usr/share/${pkgname}-${pkgver}/templates/default.latex
-# cp -a ${srcdir}/build/usr/share/man ${pkgdir}/usr/share/
-# cp -a ${srcdir}/build/usr/share/doc ${pkgdir}/usr/share/
- find ${pkgdir}/usr/share -type f -exec chmod 644 {} \;
- find ${pkgdir}/usr/share -type d -exec chmod 755 {} \;
+ find ${pkgdir}/usr/share -type f -exec chmod 644 {} \;
+ find ${pkgdir}/usr/share -type d -exec chmod 755 {} \;
}
+md5sums=('912abc4574aea3c5203eff1b02ceafa9'
+ '7ac798d62f253535a2e194af5aa1c3c3'
+ 'e632f8c06be8284e17329a5d1c459e3b')