# Maintainer :  Sapphira Armageddos <shadowkyogre.public@gmail.com>
# Contributor: jyantis <yantis@yantis.net>
# Contributor: jjdanimoth <jjdanimoth@gmail.com>
# Contributor: nesl247 <nesl247@gmail.com>

# Included in Slint by Didier Spaier didieratslintdotfr
_upstream="emerald-themes"
pkgname=emerald-themes
pkgver="0.8.18"
pkgrel=1slint
slackdesc="$pkgname (Themes for emerald)"
docs=("news" "copying*" "README.html")
options=("nosrcpack")
url="https://gitlab.com/compiz/${_upstream}/"
license=('GPL')
depends=('emerald')
makedepends=('intltool' 'pkgconfig')
groups=('compiz-fusion' 'compiz-fusion-kde' 'compiz-fusion-gtk')
conflicts=('emerald-themes-git')
source=("https://gitlab.com/compiz/emerald-themes/-/archive/v0.8.18/emerald-themes-v0.8.18.tar.bz2")

build() {
  cd "${pkgname}-v${pkgver}"
[ -f README.md ] && pandoc -f gfm -t html5 -o README.html README.md
  NOCONFIGURE=1 ./autogen.sh
  ./configure --prefix=/usr 
  make
  make DESTDIR="${PKG}" install
  # For Slint set as default the theme Overglossed instead of Beryl
  cd $PKG/usr/share/emerald/themes || exit
  mv Beryl_Default Beryl || exit
  mv Overglossed Overglossed_Default || exit
  cd - || exit
}
