summaryrefslogtreecommitdiff
path: root/~fauno
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-11-28 15:47:05 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-11-28 15:47:05 -0500
commit1694cff45f9d97eca19437caa0f7885c8604677e (patch)
tree4878f68e48e38cc606c43d188e111ce28e902d24 /~fauno
parentaaa3e32882eb2fa64659e84166ac1d02377a6600 (diff)
parentdeba1038f49ba89c7decdba2123896f22644d647 (diff)
downloadabslibre-1694cff45f9d97eca19437caa0f7885c8604677e.tar.gz
abslibre-1694cff45f9d97eca19437caa0f7885c8604677e.tar.bz2
abslibre-1694cff45f9d97eca19437caa0f7885c8604677e.zip
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to '~fauno')
-rwxr-xr-x~fauno/pandoc/PKGBUILD36
1 files changed, 21 insertions, 15 deletions
diff --git a/~fauno/pandoc/PKGBUILD b/~fauno/pandoc/PKGBUILD
index d3b88d3a0..18e249a47 100755
--- a/~fauno/pandoc/PKGBUILD
+++ b/~fauno/pandoc/PKGBUILD
@@ -15,6 +15,9 @@ 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=('912abc4574aea3c5203eff1b02ceafa9'
+ '7ac798d62f253535a2e194af5aa1c3c3'
+ 'e632f8c06be8284e17329a5d1c459e3b')
# PKGBUILD functions
build() {
@@ -24,24 +27,30 @@ build() {
while read _hkpkg; do
pushd ${srcdir}/${pkgname}-${pkgver}/${_hkpkg} >/dev/null
- extra="--prefix=${srcdir}/build/usr"
+ msg2 "Building $_hkpkg"
+
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
+ HOME=${srcdir}/${pkgname}-${pkgver} \
+ cabal configure --flags='-library' \
+ --prefix=/usr \
+ --libdir=${srcdir}/build/usr/lib -v
- msg2 "Configuring $_hkpkg with $extra"
- if [ "$_hkpkg" != "$pkgname-$pkgver" ]; then
HOME=${srcdir}/${pkgname}-${pkgver} \
- cabal install $extra
- else
+ cabal build
+ ;;
+
+ citeproc-hs-*)
HOME=${srcdir}/${pkgname}-${pkgver} \
- cabal configure $extra
+ cabal install --flags='embed_data_files' \
+ --prefix=${srcdir}/build/usr -v
+ ;;
+
+ *)
HOME=${srcdir}/${pkgname}-${pkgver} \
- cabal build
- fi
+ cabal install --prefix=${srcdir}/build/usr
+ ;;
+ esac
popd >/dev/null
done <BUILDORDER
@@ -63,6 +72,3 @@ package() {
find ${pkgdir}/usr/share -type f -exec chmod 644 {} \;
find ${pkgdir}/usr/share -type d -exec chmod 755 {} \;
}
-md5sums=('912abc4574aea3c5203eff1b02ceafa9'
- '7ac798d62f253535a2e194af5aa1c3c3'
- 'e632f8c06be8284e17329a5d1c459e3b')