44 lines
1.1 KiB
Bash
44 lines
1.1 KiB
Bash
#!/usr/bin/env bash
|
|
name='fontconfig'
|
|
release='2'
|
|
version='2.15.0'
|
|
url='https://www.freedesktop.org/software/fontconfig/'
|
|
description='Fontconfig is a library for configuring and customizing font access.'
|
|
email='bayramk@gmail.com'
|
|
maintainer='bk'
|
|
license=('GPLv3')
|
|
source=("https://www.freedesktop.org/software/fontconfig/release/fontconfig-$version.tar.gz"
|
|
"fontconfig.sysconf")
|
|
depends=(freetype expat)
|
|
makedepends=()
|
|
md5sums=('8c0842d84fa1edbde4cf4c2c82e25b66'
|
|
'SKIP')
|
|
group=(media.libs)
|
|
uses=()
|
|
arch=('x86_64')
|
|
|
|
cd $name-$version
|
|
|
|
setup(){
|
|
meson setup build --prefix=/usr \
|
|
--libdir=/usr/lib64/
|
|
}
|
|
|
|
build(){
|
|
ninja -C build
|
|
}
|
|
|
|
package(){
|
|
ninja -C build install
|
|
# fix symlinks
|
|
for link in $(ls ${DESTDIR}/etc/fonts/conf.d/) ; do
|
|
if [[ -L ${DESTDIR}/etc/fonts/conf.d/$link ]] ; then
|
|
rm -f ${DESTDIR}/etc/fonts/conf.d/$link
|
|
ln -s ../../../usr/share/fontconfig/conf.avail/$link ${DESTDIR}/etc/fonts/conf.d/$link
|
|
fi
|
|
done
|
|
mkdir -p ${DESTDIR}/etc/sysconf.d/
|
|
install ../fontconfig.sysconf ${DESTDIR}/etc/sysconf.d/fontconfig
|
|
}
|
|
|