summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1da125e158d086b3ef9c8ca8240858516d48f71e (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
45
46
# Maintainer:  Vincent Grande <shoober420@gmail.com>
# Contributor: Mikko Sepp\u00e4l\u00e4 <t-r-a-y@mbnet.fi>
# Contributor: Pierre Schmitz <pierre@archlinux.de>

pkgname=lib32-atk-git
pkgver=2.36.0
pkgrel=1
pkgdesc="The interface definitions of accessibility infrastructure (32-bit)"
url="https://git.gnome.org/browse/atk"
arch=(x86_64)
license=(LGPL)
provides=(lib32-atk)
conflicts=(lib32-atk)
depends=(lib32-glib2 atk)
makedepends=(gobject-introspection git meson)
source=("git+https://gitlab.gnome.org/GNOME/atk.git")
sha512sums=('SKIP')

pkgver() {
  cd atk
  git describe --tags | sed 's/^ATK_//;s/_/./g;s/-/+/g'
}

prepare() {
  cd atk
}

build() {
  export CC="gcc -m32"
  export CXX="g++ -m32"
  export PKG_CONFIG_PATH=/usr/lib32/pkgconfig

  arch-meson atk build -D enable_docs=false -D introspection=false --libdir=/usr/lib32
  ninja -C build
}

#check() {
#  cd build
#  meson test
#}

package() {
  DESTDIR="$pkgdir" ninja -C build install
  rm -r "${pkgdir}"/usr/{include,share}
}