summaryrefslogtreecommitdiff
path: root/user/cogl/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/cogl/APKBUILD')
-rw-r--r--user/cogl/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/user/cogl/APKBUILD b/user/cogl/APKBUILD
new file mode 100644
index 000000000..4f1b2202f
--- /dev/null
+++ b/user/cogl/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+pkgname=cogl
+pkgver=1.22.2
+pkgrel=0
+pkgdesc="GObject-based GL/GLES abstraction library"
+url="https://gnome.org"
+arch="all"
+options="!check" # broken testsuite, no logs/messages to determine why
+license="MIT AND SGI-B-2.0 AND BSD-3-Clause AND Public-Domain AND LGPL-2.0+ AND Apache-2.0"
+makedepends="glib-dev libxcomposite-dev libxrandr-dev mesa-dev cairo-dev
+ pango-dev vala gobject-introspection-dev gdk-pixbuf-dev"
+subpackages="$pkgname-dev $pkgname-lang"
+source="https://download.gnome.org/sources/cogl/1.22/cogl-$pkgver.tar.xz
+ fix-wayland-egl-check.patch"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --enable-kms-egl-platform=yes \
+ --enable-xlib-egl-platform=yes
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="2ec99f5ff22683d12925b9a1f748387b47c4506aaf3c5afec851b3b6fe6b7cdfd211fb7e4359bd7a1d1b7cb3cb7fbd257efbcb7d2941d0f133a60bad1c9645e3 cogl-1.22.2.tar.xz
+73fa3a7258e2624d13abfe36259bef1a28e993653f0fdebfb4b0822752fa40a95399f4f9cd707873938bc6b8edcc7db46228247851471899f05a7e7132af58c7 fix-wayland-egl-check.patch"