mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-04 01:17:16 +08:00
53 lines
1.7 KiB
Bash
53 lines
1.7 KiB
Bash
_pkgbasename=fontconfig
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=2.11.1
|
|
pkgrel=2
|
|
_ubuntu_diff_version=${pkgver}-0ubuntu6
|
|
pkgdesc="A library for configuring and customizing font access (32-bit)"
|
|
arch=('x86_64')
|
|
url="http://www.fontconfig.org/release/"
|
|
license=('custom')
|
|
depends=('lib32-expat' 'lib32-freetype2' 'lib32-bzip2' $_pkgbasename=$pkgver)
|
|
makedepends=(gcc-multilib)
|
|
provides=("${pkgname}-ubuntu")
|
|
conflicts=("${pkgname}-ubuntu")
|
|
replaces=("${pkgname}-ubuntu")
|
|
source=("http://www.fontconfig.org/release/$_pkgbasename-$pkgver.tar.bz2"
|
|
"http://archive.ubuntu.com/ubuntu/pool/main/f/fontconfig/fontconfig_${_ubuntu_diff_version}.debian.tar.xz")
|
|
md5sums=('824d000eb737af6e16c826dd3b2d6c90'
|
|
'5d8e082f4d36d6c82853f6b6a5f6997a')
|
|
|
|
build() {
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
|
|
|
# apply ubuntu patches
|
|
for _f in $(cat "$srcdir/debian/patches/series" | grep -v '#') ; do
|
|
patch -Np1 -i "$srcdir/debian/patches/$_f"
|
|
done
|
|
|
|
./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 \
|
|
--libdir=/usr/lib32
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
rm -rf "${pkgdir}"/usr/{include,share,bin} "$pkgdir"/{etc,var}
|
|
mkdir -p "$pkgdir/usr/share/licenses"
|
|
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
|
|
}
|