android-x86-64-harfbuzz
MEDIUM
maintainer hipersayan_x
0 votes
scanned 2026-09-25 07:10:52.990950
Why flagged
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
Triggered rules
Medium
Recently orphaned & re-adopted
orphaned_readopted
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
PKGBUILD
1
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
2
# Contributor: pingplug < aur at pingplug dot me >
3
# Contributor: Schala Zeal < schalaalexiazeal at gmail dot com >
4
5
_android_arch=x86-64
6
7
pkgbase=android-${_android_arch}-harfbuzz
8
pkgname=("android-${_android_arch}-harfbuzz"
9
"android-${_android_arch}-harfbuzz-icu")
10
pkgver=12.3.2
11
pkgrel=1
12
pkgdesc="OpenType text shaping engine (Android ${_android_arch})"
13
arch=('any')
14
license=('MIT')
15
url="https://www.freedesktop.org/wiki/Software/HarfBuzz"
16
groups=('android-harfbuzz')
17
depends=("android-${_android_arch}-glib2"
18
"android-${_android_arch}-graphite"
19
"android-${_android_arch}-freetype2")
20
makedepends=('android-meson'
21
"android-${_android_arch}-cairo"
22
"android-${_android_arch}-icu"
23
'python'
24
'ragel')
25
options=(!strip !buildflags staticlibs !emptydirs)
26
source=("https://github.com/harfbuzz/harfbuzz/archive/refs/tags/${pkgver}.tar.gz")
27
md5sums=('3e9011ecd909047e98a18192b620d16b')
28
29
build() {
30
cd "${srcdir}/harfbuzz-${pkgver}"
31
source android-env ${_android_arch}
32
33
android-${_android_arch}-meson build-shared \
34
-D b_lto=false \
35
-D graphite=enabled \
36
-D tests=disabled \
37
-D docs=disabled
38
sed -i 's|-Wl,--no-undefined||g' build-shared/build.ninja
39
ninja -C build-shared
40
41
android-${_android_arch}-meson build-static \
42
--default-library static \
43
-D b_lto=false \
44
-D graphite=enabled \
45
-D tests=disabled \
46
-D docs=disabled
47
sed -i 's|-Wl,--no-undefined||g' build-static/build.ninja
48
ninja -C build-static
49
}
50
51
package_android-x86-64-harfbuzz() {
52
cd "${srcdir}/harfbuzz-${pkgver}"
53
source android-env ${_android_arch}
54
55
DESTDIR="${pkgdir}" ninja -C build-shared install
56
DESTDIR="${pkgdir}" ninja -C build-static install
57
58
cp "src/hb-ft.h" "${pkgdir}/${ANDROID_PREFIX_INCLUDE}/harfbuzz/"
59
rm -r "${pkgdir}/${ANDROID_PREFIX_BIN}"
60
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a || true
61
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
62
63
mkdir -p "hb-icu/${ANDROID_PREFIX}"/{include/harfbuzz,lib/pkgconfig}
64
mv -vf "${pkgdir}/${ANDROID_PREFIX_LIB}"/libharfbuzz-icu* "hb-icu/${ANDROID_PREFIX_LIB}"
65
mv -vf "${pkgdir}/${ANDROID_PREFIX_LIB}/pkgconfig/harfbuzz-icu.pc" "hb-icu/${ANDROID_PREFIX_LIB}/pkgconfig"
66
mv -vf "${pkgdir}/${ANDROID_PREFIX_INCLUDE}/harfbuzz/hb-icu.h" "hb-icu/${ANDROID_PREFIX_INCLUDE}/harfbuzz"
67
68
install -vDm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}/"
69
}
70
71
package_android-x86-64-harfbuzz-icu() {
72
pkgdesc="OpenType text shaping engine (ICU integration, Android ${_android_arch})"
73
depends=("android-${_android_arch}-harfbuzz"
74
"android-${_android_arch}-icu")
75
76
mkdir -p "${pkgdir}/${ANDROID_PREFIX}"
77
mv -vf "${srcdir}/harfbuzz-${pkgver}/hb-icu/${ANDROID_PREFIX}"/* "${pkgdir}/${ANDROID_PREFIX}"
78
79
install -vDm 644 "${srcdir}/harfbuzz-${pkgver}/COPYING" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
80
}
81
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-25 07:10:52 | Medium | 1 |
| 2026-06-18 16:11:54 | Clean | 0 |