# Tanım: Deepin için pencere yöneticisi
# URL: https://github.com/linuxdeepin/deepin-wm
# Paketçi: Cihan_Alkan
# Gerekler: vala gnome-common deepin-desktop-schemas bamf clutter-gtk gnome-desktop libgee granite deepin-mutter
# Grup: deepin

isim=deepin-wm
surum=1.9.34
devir=1
kaynak=(https://github.com/linuxdeepin/$isim/archive/$surum.tar.gz::$isim-$surum.tar.gz)

derle() {

  export CFLAGS="$CFLAGS -DWNCK_I_KNOW_THIS_IS_UNSTABLE"

  sed -i 's#/usr/share/backgrounds/default_background.jpg#/usr/share/backgrounds/deepin/desktop.jpg#' $isim-$surum/src/Background/BackgroundSource.vala
  cd $isim-$surum
  ./autogen.sh \
    --prefix='/usr' \
    --disable-schemas-compile
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
  make DESTDIR="${PKG}" install
}