blob: fc9c1f9bef6b17e968d71872b456ef415e9c859f (
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.4
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=9a3bde57751a3881d32393ffca8fbf5b9a3a0755 # tags/1.8.4^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}
}
|