makedepends=(cmake startup-notification setconf xorg-libxdamage xorg-libxrandr librsvg gtk3 imlib2 xorg-libxcomposite)

description="Basic, good-looking task manager for WMs"
url="https://gitlab.com/o9000/tint2"

packager="Great-OS Team"
maintainer="rems"

name=tint2
version=17.0.2
release=3

source=(https://gitlab.com/o9000/${name}/-/archive/${version}/${name}-${version}.tar.gz)

prepare() {
  ln -s /usr/bin/python3 /usr/bin/python

  setconf $name-$version/get_version.sh VERSION="$version"

}

build() {

  cd $name-$version

  cmake \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    -DENABLE_TINT2CONF=1 \
    -GNinja
  ninja
}

package() {
  cd $name-$version
  DESTDIR=$PKG ninja install
}
