mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 02:34:37 +08:00
59 lines
2.3 KiB
Bash
59 lines
2.3 KiB
Bash
|
#
|
||
|
# Chakra Packages for Chakra, part of chakra-project.org
|
||
|
#
|
||
|
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
||
|
|
||
|
# include global config
|
||
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
||
|
|
||
|
pkgname=texlive-htmlxml
|
||
|
pkgver=2010.19804
|
||
|
pkgrel=1
|
||
|
pkgdesc="TeX Live - Packages to convert LaTeX to XML/HTML, and typeset XML/SGML"
|
||
|
license=('GPL')
|
||
|
arch=(any)
|
||
|
depends=('texlive-core')
|
||
|
groups=('texlive-most')
|
||
|
url='http://tug.org/texlive/'
|
||
|
source=("ftp://ftp.archlinux.org/other/texlive/$pkgname-$pkgver-src.zip")
|
||
|
options=('!emptydirs')
|
||
|
options=(!strip)
|
||
|
install=texlive.install
|
||
|
md5sums=('ef08cc67e0d8c702dc7ecfde6a9c0894')
|
||
|
|
||
|
build() {
|
||
|
for p in *.tar.xz; do
|
||
|
bsdtar -xf $p
|
||
|
done
|
||
|
rm -rf {tlpkg,doc,source} || true
|
||
|
}
|
||
|
package() {
|
||
|
install -m755 -d $pkgdir/var/lib/texmf/arch/installedpkgs
|
||
|
sed -i '/^#/d' CONTENTS
|
||
|
_revnr=`echo $pkgver | sed 's/2010\.//'`
|
||
|
install -m644 CONTENTS $pkgdir/var/lib/texmf/arch/installedpkgs/${pkgname}_${_revnr}.pkgs
|
||
|
install -m755 -d $pkgdir/usr/share
|
||
|
wanteddirs=$(for d in *; do test -d $d && [[ $d != texmf* ]] && echo $d; done) || true
|
||
|
for dir in $wanteddirs; do
|
||
|
find $dir -type d -exec install -d -m755 $pkgdir/usr/share/texmf-dist/'{}' \;
|
||
|
find $dir -type f -exec install -m644 '{}' $pkgdir/usr/share/texmf-dist/'{}' \;
|
||
|
done
|
||
|
if [[ -d texmf-dist ]]; then
|
||
|
find texmf-dist -type d -exec install -d -m755 $pkgdir/usr/share/'{}' \;
|
||
|
find texmf-dist -type f -exec install -m644 '{}' $pkgdir/usr/share/'{}' \;
|
||
|
fi
|
||
|
if [[ -d $pkgdir/usr/share/texmf-dist/scripts ]]; then
|
||
|
find $pkgdir/usr/share/texmf-dist/scripts -type f -exec chmod a+x '{}' \;
|
||
|
fi
|
||
|
install -m755 -d $pkgdir/usr/bin
|
||
|
ln -s /usr/share/texmf-dist/scripts/tex4ht/ht.sh $pkgdir/usr/bin/ht
|
||
|
ln -s /usr/share/texmf-dist/scripts/tex4ht/htcontext.sh $pkgdir/usr/bin/htcontext
|
||
|
ln -s /usr/share/texmf-dist/scripts/tex4ht/htlatex.sh $pkgdir/usr/bin/htlatex
|
||
|
ln -s /usr/share/texmf-dist/scripts/tex4ht/htmex.sh $pkgdir/usr/bin/htmex
|
||
|
ln -s /usr/share/texmf-dist/scripts/tex4ht/httex.sh $pkgdir/usr/bin/httex
|
||
|
ln -s /usr/share/texmf-dist/scripts/tex4ht/httexi.sh $pkgdir/usr/bin/httexi
|
||
|
ln -s /usr/share/texmf-dist/scripts/tex4ht/htxelatex.sh $pkgdir/usr/bin/htxelatex
|
||
|
ln -s /usr/share/texmf-dist/scripts/tex4ht/htxetex.sh $pkgdir/usr/bin/htxetex
|
||
|
ln -s /usr/share/texmf-dist/scripts/tex4ht/mk4ht.pl $pkgdir/usr/bin/mk4ht
|
||
|
}
|