mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-06 06:57:16 +08:00
57 lines
2.0 KiB
Bash
57 lines
2.0 KiB
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=texlive-fontsextra
|
|
pkgver=2010.19878
|
|
pkgrel=2
|
|
pkgdesc="TeX Live - all sorts of extra fonts"
|
|
license=('GPL')
|
|
arch=(any)
|
|
depends=('texlive-core')
|
|
groups=('texlive-most')
|
|
url='http://tug.org/texlive/'
|
|
source=("http://chakra-project.org/sources/texlive/$pkgname-$pkgver-src.zip" "$pkgname.maps")
|
|
options=('!emptydirs')
|
|
options=(!strip)
|
|
install=texlive.install
|
|
md5sums=('3e2a1ea758bf9b4b5a64d43d57a38e94'
|
|
'038007ecc64393e68248ba43ba67d673')
|
|
|
|
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 -m644 $pkgname.maps $pkgdir/var/lib/texmf/arch/installedpkgs/
|
|
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
|
|
|
|
# remove stuff depending on omega/aleph
|
|
rm -rf $pkgdir/usr/share/texmf-dist/omega
|
|
find $pkgdir/ -wholename '*ocherokee*' -delete
|
|
find $pkgdir/ -wholename '*oinuit*' -delete
|
|
}
|