#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Lime GNU/Linux 2017
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from inary.actionsapi import inarytools
from inary.actionsapi import get, mesontools



def setup():
    mesontools.meson_configure("-D gles1=false")
    
def build():
    mesontools.ninja_build()

def install():
    mesontools.ninja_install()
    #fix conflict with mesa
    for file in ["libGL.so","libGLESv2.so.2","libEGL.so.1","libGL.so.1","libEGL.so","libGLESv2.so"]:
        inarytools.remove("/usr/lib/{}".format(file))
