blob: 471702858c4bc8613e1f50e72721f4114334a931 (
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
|
# Maintainer: Andrew Sun <adsun701@gmail.com>
# Contributor: orumin <dev@orum.in>
_basename=graphene
pkgname="lib32-$_basename"
pkgver=1.8.6
pkgrel=1
pkgdesc="A thin layer of graphic data types (32-bit)"
url="https://github.com/ebassi/graphene"
arch=('x86_64')
license=(MIT)
depends=('lib32-glib2' 'graphene')
makedepends=('git' 'lib32-gcc-libs' 'gobject-introspection' 'gtk-doc' 'meson')
_commit=e22dc08a84d8a9128873a46ad9c71f81c1b4657d # tags/1.8.6^0
source=("git+https://github.com/ebassi/graphene#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd $_basename
git describe --tags | sed 's/-/+/g'
}
build() {
export CC='gcc -m32'
export CXX='g++ -m32'
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
arch-meson $_basename build --libdir='/usr/lib32' -D gtk_doc=true
ninja -C build
}
check() {
cd build
meson test
}
package() {
DESTDIR="$pkgdir" ninja -C build install
rm -r "$pkgdir"/usr/{lib,share}/installed-tests
rm -rf ${pkgdir}/usr/{bin,share,include}
}
|