2021-02-03 13:03:52 +00:00
|
|
|
pkgname=fontconfig
|
2021-09-26 11:45:45 +00:00
|
|
|
pkgver=2.13.94
|
2021-02-03 13:03:52 +00:00
|
|
|
|
|
|
|
fetch() {
|
2021-09-26 11:45:45 +00:00
|
|
|
curl "https://www.freedesktop.org/software/fontconfig/release/$pkgname-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
|
2021-02-03 13:03:52 +00:00
|
|
|
tar -xf $pkgname-$pkgver.tar.xz
|
|
|
|
cp ../fcobjshash.h $pkgname-$pkgver/src
|
|
|
|
mkdir $pkgname-$pkgver/build
|
2021-09-26 11:45:45 +00:00
|
|
|
cd $pkgname-$pkgver
|
|
|
|
sed -i 's/fcobjshash\.h/fcjunk.h/' src/meson.build
|
|
|
|
sed -i "s/find_program(\'gperf/find_program(\'true/" meson.build
|
2021-02-03 13:03:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
2021-09-26 11:45:45 +00:00
|
|
|
|
2021-02-03 13:03:52 +00:00
|
|
|
cd build
|
|
|
|
meson .. \
|
|
|
|
--buildtype=release \
|
|
|
|
--prefix=/usr \
|
2021-09-26 11:45:45 +00:00
|
|
|
--libexecdir=lib \
|
|
|
|
-Ddocs=disabled \
|
|
|
|
-Dnls=disabled \
|
|
|
|
-Dtests=disabled
|
2021-02-03 13:03:52 +00:00
|
|
|
samu
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cd build
|
|
|
|
DESTDIR=$pkgdir samu install
|
|
|
|
}
|
|
|
|
|
|
|
|
license() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cat LICENSE
|
|
|
|
# cat COPYING
|
|
|
|
}
|