summaryrefslogtreecommitdiff
path: root/libs/at-spi2-core/MAKEPKG
blob: 9c876616c871c9a4b82cdfbdb6e595da9b5571e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/mkpkg
# description: Assistive Technology Service Provider Interface
# url: https://wiki.gnome.org/Accessibility

name=at-spi2-core
version=2.61.90
release=1
_short=2.61
depends=(glib dbus)
makedeps=(meson)
source=(https://download.gnome.org/sources/$name/$_short/$name-$version.tar.xz)

sha256sums=(
    "f099d620d2a48997fcd3b8a4a044b60156e59c116857acbc676208556ef540c3"
)

build() {
    meson setup $name-$version build \
        --prefix=/usr \
        --libdir=lib \
        --buildtype=plain \
        -D docs=false \
        -D introspection=disabled \
        -D x11=disabled \
        -D use_systemd=false \
        -D gtk2_atk_adaptor=false

    meson compile -C build
    DESTDIR=$PKG meson install -C build

    _pyver=$(/usr/bin/python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')
    _sitedir="$PKG/usr/lib/python${_pyver}/site-packages"
    if [ -d "$_sitedir" ]; then
        /usr/bin/python3 -OO -m compileall -b -q "$_sitedir"
        find "$_sitedir" -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
    fi
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh