mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-19 09:20:23 +08:00
will commit them separately next time... it's just too much work to do separate commits right now
77 lines
2.3 KiB
Bash
77 lines
2.3 KiB
Bash
#
|
|
# Chakra 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>
|
|
|
|
pkgname=fontconfig
|
|
pkgver=2.10.93
|
|
pkgrel=1
|
|
pkgdesc="A library for configuring and customizing font access"
|
|
arch=('x86_64')
|
|
url="http://www.fontconfig.org/release/"
|
|
license=('custom')
|
|
depends=('expat>=2.0.1' 'freetype2>=2.3.11')
|
|
options=('!libtool')
|
|
install='fontconfig.install'
|
|
source=("http://www.fontconfig.org/release/${pkgname}-${pkgver}.tar.gz"
|
|
"29-replace-bitmap-fonts.conf")
|
|
sha256sums=('381541e4d1a150dac46af1d9ad64bdc3a131d6b2707d192209b2ed26e3e64147'
|
|
'2325c478783659e8fce79f5754119934d6ce21f81552f878b740c7b18f9fe0d6')
|
|
backup=(etc/fonts/conf.d/20-unhint-small-vera.conf
|
|
etc/fonts/conf.d/29-replace-bitmap-fonts.conf
|
|
etc/fonts/conf.d/30-metric-aliases.conf
|
|
etc/fonts/conf.d/30-urw-aliases.conf
|
|
etc/fonts/conf.d/40-nonlatin.conf
|
|
etc/fonts/conf.d/45-latin.conf
|
|
etc/fonts/conf.d/49-sansserif.conf
|
|
etc/fonts/conf.d/50-user.conf
|
|
etc/fonts/conf.d/51-local.conf
|
|
etc/fonts/conf.d/60-latin.conf
|
|
etc/fonts/conf.d/65-fonts-persian.conf
|
|
etc/fonts/conf.d/65-nonlatin.conf
|
|
etc/fonts/conf.d/69-unifont.conf
|
|
etc/fonts/conf.d/80-delicious.conf
|
|
etc/fonts/conf.d/90-synthetic.conf
|
|
)
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
libtoolize -f
|
|
autoreconf -fi
|
|
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--with-templatedir=/etc/fonts/conf.avail \
|
|
--with-xmldir=/etc/fonts \
|
|
--localstatedir=/var \
|
|
--disable-static \
|
|
--with-default-fonts=/usr/share/fonts \
|
|
--with-add-fonts=/usr/share/fonts
|
|
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make -k check
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -m644 "${srcdir}/29-replace-bitmap-fonts.conf" \
|
|
"${pkgdir}/etc/fonts/conf.avail"
|
|
|
|
ln -s ../conf.avail/29-replace-bitmap-fonts.conf \
|
|
"$pkgdir/etc/fonts/conf.d/29-replace-bitmap-fonts.conf"
|
|
|
|
# Install license
|
|
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|