[arch-commits] Commit in pandoc-citeproc/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Fri Dec 25 06:18:56 UTC 2015
Date: Friday, December 25, 2015 @ 07:18:55
Author: fyan
Revision: 154473
upgpkg: pandoc-citeproc 0.8.1.3-18
split libraries and docs
Modified:
pandoc-citeproc/trunk/PKGBUILD
----------+
PKGBUILD | 49 ++++++++++++++++++++++++++++++-------------------
1 file changed, 30 insertions(+), 19 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-12-25 05:26:35 UTC (rev 154472)
+++ PKGBUILD 2015-12-25 06:18:55 UTC (rev 154473)
@@ -2,30 +2,29 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
-_hkgname=pandoc-citeproc
-pkgname=haskell-pandoc-citeproc
+pkgbase=pandoc-citeproc
+pkgname=(pandoc-citeproc haskell-pandoc-citeproc)
pkgver=0.8.1.3
-pkgrel=17
+pkgrel=18
pkgdesc="Supports using pandoc with citeproc"
-url="http://hackage.haskell.org/package/${_hkgname}"
+url="http://hackage.haskell.org/package/${pkgbase}"
license=("custom:BSD3")
arch=('i686' 'x86_64')
-depends=("ghc=7.10.3" "haskell-aeson" "haskell-aeson-pretty" "haskell-attoparsec"
- "haskell-data-default" "haskell-hs-bibutils" "haskell-mtl"
- "haskell-old-locale" "pandoc" "haskell-pandoc-types" "haskell-parsec"
- "haskell-rfc5051" "haskell-setenv" "haskell-split" "haskell-syb"
- "haskell-tagsoup" "haskell-temporary" "haskell-text" "haskell-unordered-containers"
- "haskell-vector" "haskell-xml-conduit" "haskell-yaml")
+makedepends=("ghc=7.10.3" "haskell-aeson" "haskell-aeson-pretty" "haskell-attoparsec"
+ "haskell-data-default" "haskell-hs-bibutils" "haskell-mtl"
+ "haskell-old-locale" "haskell-pandoc" "haskell-pandoc-types" "haskell-parsec"
+ "haskell-rfc5051" "haskell-setenv" "haskell-split" "haskell-syb"
+ "haskell-tagsoup" "haskell-temporary" "haskell-text" "haskell-unordered-containers"
+ "haskell-vector" "haskell-xml-conduit" "haskell-yaml")
options=('staticlibs')
-source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-install="${pkgname}.install"
+source=("http://hackage.haskell.org/packages/archive/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.gz")
sha256sums=('aa15ff9cbb9c1cca504943c94cd891e23944cb0106172886821cb048a9726c7d')
build() {
- cd "${srcdir}/${_hkgname}-${pkgver}"
+ cd "${srcdir}/${pkgbase}-${pkgver}"
runhaskell Setup configure -O --enable-library-profiling --enable-shared \
- --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgbase}" --datasubdir="$pkgbase" \
--libsubdir=\$compiler/site-local/\$pkgid \
-f-debug -f-test_citeproc -f-unicode_collation -f-embed_data_files -fbibutils
runhaskell Setup build
@@ -35,14 +34,26 @@
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
}
-package() {
- cd "${srcdir}/${_hkgname}-${pkgver}"
-
+package_pandoc-citeproc() {
+ depends=('pandoc')
+
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ runhaskell Setup copy --destdir="${pkgdir}"
+ rm -r "$pkgdir"/usr/{lib,share/doc}
+ install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_haskell-pandoc-citeproc() {
+ pkgdesc="Supports using pandoc with citeproc (docs and libraries)"
+ depends=("${makedepends[@]}" 'pandoc-citeproc')
+ install="haskell-pandoc-citeproc.install"
+
+ cd "${srcdir}/${pkgbase}-${pkgver}"
install -D -m744 register.sh "${pkgdir}/usr/share/haskell/${pkgname}/register.sh"
install -m744 unregister.sh "${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh"
install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
- ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}"
+ ln -s "/usr/share/doc/${pkgbase}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${pkgbase}"
runhaskell Setup copy --destdir="${pkgdir}"
- install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -r "$pkgdir"/usr/share/{pandoc-citeproc,man} "$pkgdir"/usr/bin
rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
}
More information about the arch-commits
mailing list