summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Grande2020-12-13 14:02:06 -0500
committerVincent Grande2020-12-13 14:02:06 -0500
commit2758f41942fdf28b1e4dfbd3c10bb81d60367f91 (patch)
treedf2e68b4a965b8e574afd5123419818a9a39d040
downloadaur-2758f41942fdf28b1e4dfbd3c10bb81d60367f91.tar.gz
initial upload
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD54
2 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f1566a0a986
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = lib32-harfbuzz-minimal-git
+ pkgdesc = OpenType text shaping engine (32-bit)
+ pkgver = 2.7.1
+ pkgrel = 1
+ url = https://www.freedesktop.org/wiki/Software/HarfBuzz
+ arch = x86_64
+ license = MIT
+ makedepends = lib32-glib2
+ makedepends = lib32-freetype2
+ makedepends = lib32-cairo
+ makedepends = lib32-icu
+ makedepends = ragel
+ makedepends = git
+ makedepends = python
+ makedepends = meson
+ makedepends = harfbuzz
+ source = git+https://github.com/harfbuzz/harfbuzz
+ sha256sums = SKIP
+
+pkgname = lib32-harfbuzz-minimal-git
+ provides = lib32-harfbuzz
+ provides = libharfbuzz.so
+ provides = libharfbuzz-subset.so
+ provides = libharfbuzz-gobject.so
+ conflicts = lib32-harfbuzz
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3c376f3f89b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,54 @@
+# Maintainer: Vincent Grande <shoober420@gmail.com>
+# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
+# Contributor: Florian Pritz <bluewind@xinu.at>
+
+pkgname=(lib32-harfbuzz-minimal-git)
+pkgver=2.7.1
+pkgrel=1
+pkgdesc="OpenType text shaping engine (32-bit)"
+url="https://www.freedesktop.org/wiki/Software/HarfBuzz"
+arch=(x86_64)
+license=(MIT)
+makedepends=(lib32-glib2 lib32-freetype2 lib32-cairo lib32-icu ragel git python
+ meson harfbuzz)
+#checkdepends=(python-fonttools python-setuptools)
+source=("git+https://github.com/harfbuzz/harfbuzz")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd harfbuzz
+ git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+ cd harfbuzz
+}
+
+build() {
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG="i686-pc-linux-gnu-pkg-config"
+
+ arch-meson harfbuzz build \
+ --libdir=/usr/lib32 \
+ -D introspection=disabled \
+ -D docs=disabled \
+ -D icu=disabled
+ meson compile -C build
+}
+
+#check() {
+# mkdir -p tmp
+# TMPDIR="$PWD/tmp" meson test -C build --print-errorlogs
+# rm -r tmp
+#}
+
+package_lib32-harfbuzz-minimal-git() {
+ provides=(lib32-harfbuzz libharfbuzz.so libharfbuzz-subset.so libharfbuzz-gobject.so)
+ conflicts=(lib32-harfbuzz)
+
+ DESTDIR="$pkgdir" meson install -C build
+ rm -rf "${pkgdir}"/usr/{include,share,bin}
+
+ install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 harfbuzz/COPYING
+}