pkgname: cogl pkgver: '1.22.8' pkgrel: '2' pkgdesc: 'An object oriented GL/GLES Abstraction/Utility Layer' url: 'https://www.gnome.org/' arch: x86_64 depends: [] makedepends: - 'xorg-libxrandr' - 'gdk-pixbuf' - mesa - 'xorg-glu' - pango - 'xorg-libdrm' - 'gobject-introspection' source: - 'https://download.gnome.org/sources/${pkgname}/1.22/${pkgname}-${pkgver}.tar.xz' sha256sums: - SKIP build: | unset MAKEFLAGS cd ${pkgname}-${pkgver} # Do not build examples sed -e "s/^\(SUBDIRS +=.*\)examples\(.*\)$/\1\2/" \ -i Makefile.am Makefile.in #if ! use test ; then # For some reason the configure switch will not completely disable # tests being built sed -e "s/^\(SUBDIRS =.*\)test-fixtures\(.*\)$/\1\2/" \ -e "s/^\(SUBDIRS +=.*\)tests\(.*\)$/\1\2/" \ -e "s/^\(.*am__append.* \)tests\(.*\)$/\1\2/" \ -i Makefile.am Makefile.in #fi ./configure --prefix=/usr \ --disable-examples-install \ --disable-maintainer-flags \ --enable-gles2 \ --enable-{kms,wayland}-egl-platform \ --enable-wayland-egl-server \ --disable-unit-tests \ --disable-profile # https://bugzilla.gnome.org/show_bug.cgi?id=655517 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make make DESTDIR=${PKGDIR} install package: | true