description="Library for layout and rendering of text"
url="http://www.pango.org/"

license="LGPL2"

packager="spiky <spiky@nutyx.org>"
contributors="Pierre,Tnut"

makedepends=(ninja meson cairo libthai freetype xorg-libxft gobject-introspection
             harfbuzz xorg-libxxf86vm gtk-doc fribidi)


name=pango
version=1.54.0

source=(https://gitlab.gnome.org/GNOME/pango/-/archive/$version/$name-$version.tar.gz)
build() {
cd $name-$version

mkdir build
cd    build

meson setup .. \
       --prefix=/usr          \
            --buildtype=release

ninja

DESTDIR=$PKG ninja install

install -Dm644 ../COPYING $PKG/usr/share/licenses/$name/COPYING
}



uptodate(){
local latest lastversion url
url="https://download.gnome.org/sources/$name"
latest="`lynx -read_timeout=20 -dump -listonly -nonumbers \
$url/?C=N\;O=D|grep [0-9]/$|head -1`"
lastversion="`lynx -read_timeout=20 -dump -listonly -nonumbers \
$latest/?C=N\;O=D|grep LATEST|grep [0-9]$|cut -d "-" -f3`"
echo "$lastversion"
}
