# Description: A simple color chooser written in GTK3 # URL: https://gitlab.gnome.org/World/gcolor3 # Maintainer: KRAK3N Team, extra ports at krak3n dot my # Depends on: gtk3 name=gcolor3 version=2.4.0 release=1 source=(https://gitlab.gnome.org/World/${name}/-/archive/v${version}/${name}-v${version}.tar.gz portal.patch) build() { cd ${name}-v${version} patch -RNp1 -i ../portal.patch meson setup \ -Dprefix=/usr \ -Dlibdir=/usr/lib \ -Dincludedir=/usr/include \ -Ddatadir=/usr/share \ -Dmandir=/usr/share/man \ -Dinfodir=/usr/share/info \ -Dlocaledir=/usr/share/locale \ -Dsysconfdir=/etc \ -Dlocalstatedir=/var \ -Dsharedstatedir=/var/lib \ -Dbuildtype=plain \ -Dauto_features=auto \ -Dwrap_mode=nodownload \ -Db_lto=true \ -Db_pie=true \ -Dwerror=false \ build ninja -C build DESTDIR=$PKG meson install -C build }