[arch-commits] Commit in harfbuzz/repos (staging-x86_64 staging-x86_64/PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Sat Dec 19 07:40:06 UTC 2020
Date: Saturday, December 19, 2020 @ 07:40:06
Author: foutrelis
Revision: 404558
archrelease: copy trunk to staging-x86_64
Added:
harfbuzz/repos/staging-x86_64/
harfbuzz/repos/staging-x86_64/PKGBUILD
(from rev 404557, harfbuzz/trunk/PKGBUILD)
----------+
PKGBUILD | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 65 insertions(+)
Copied: harfbuzz/repos/staging-x86_64/PKGBUILD (from rev 404557, harfbuzz/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-12-19 07:40:06 UTC (rev 404558)
@@ -0,0 +1,65 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgbase=harfbuzz
+pkgname=(harfbuzz harfbuzz-icu)
+pkgver=2.7.2
+pkgrel=2
+pkgdesc="OpenType text shaping engine"
+url="https://www.freedesktop.org/wiki/Software/HarfBuzz"
+arch=(x86_64)
+license=(MIT)
+makedepends=(glib2 freetype2 graphite cairo icu gobject-introspection gtk-doc
+ ragel git python meson)
+checkdepends=(python-fonttools python-setuptools)
+_commit=9c98b2b9a9e43669c5e2b37eaa41b1e07de1ede3 # tags/2.7.2^0
+source=("git+https://github.com/harfbuzz/harfbuzz#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd harfbuzz
+ git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+ cd harfbuzz
+}
+
+build() {
+ arch-meson harfbuzz build \
+ -D graphite=enabled
+ meson compile -C build
+}
+
+check() {
+ mkdir -p tmp
+ TMPDIR="$PWD/tmp" meson test -C build --print-errorlogs
+ rm -r tmp
+}
+
+package_harfbuzz() {
+ depends=(glib2 freetype2 graphite libglib-2.0.so libfreetype.so
+ libgobject-2.0.so)
+ provides=(libharfbuzz.so libharfbuzz-subset.so libharfbuzz-gobject.so)
+ optdepends=('cairo: hb-view program')
+
+ DESTDIR="$pkgdir" meson install -C build
+
+ # Split harfbuzz-icu
+ mkdir -p hb-icu/usr/{include/harfbuzz,lib/pkgconfig}
+ mv -t hb-icu/usr/lib "$pkgdir"/usr/lib/libharfbuzz-icu*
+ mv -t hb-icu/usr/lib/pkgconfig "$pkgdir"/usr/lib/pkgconfig/harfbuzz-icu.pc
+ mv -t hb-icu/usr/include/harfbuzz "$pkgdir"/usr/include/harfbuzz/hb-icu.h
+
+ install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 harfbuzz/COPYING
+}
+
+package_harfbuzz-icu() {
+ pkgdesc="$pkgdesc (ICU integration)"
+ depends=("harfbuzz=$pkgver-$pkgrel" icu libharfbuzz.so)
+ provides=(libharfbuzz-icu.so)
+
+ mv hb-icu/* "$pkgdir"
+
+ install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 harfbuzz/COPYING
+}
More information about the arch-commits
mailing list