# Tanım: Cinnamon ayarları programı
# URL: https://github.com/linuxmint/cinnamon-settings-daemon
# Paketçi: Cihan_Alkan
# Gerekler: glib intltool gtk3 python3-pillow pypam cinnamon-desktop libnotify libgnomekbd libcanberra upower colord libgudev nss dbus-glib docbook-xsl librsvg pulseaudio polkit libwacom tdb
# Grup: sistem

isim=cinnamon-settings-daemon
surum=4.0.3
devir=1
kaynak=(https://github.com/linuxmint/$isim/archive/$surum.tar.gz::$isim-$surum.tar.gz)

derle() {
  cd $isim-$surum
 autoreconf -fi

    ./configure --prefix=/usr \
                --sysconfdir=/etc \
                --localstatedir=/var \
                --libexecdir="/usr/lib/${pkgname}" \
                --enable-systemd \
                --enable-polkit

    #https://bugzilla.gnome.org/show_bug.cgi?id=656231
    sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

    make
    make DESTDIR=$PKG install
}