# Tanım: Deepin dosya arama aracı
# URL: https://github.com/linuxdeepin/deepin-anything
# Paketçi: Cihan_Alkan
# Gerekler: gobject-introspection xorg-libdrm xorg-libxext xorg-libxdamage xorg-libxcomposite gdk-pixbuf pango xorg-libxrandr
# Grup: deepin

isim=deepin-anything
surum=0.0.3
devir=1
kaynak=(https://github.com/linuxdeepin/$isim/archive/$surum.tar.gz::$isim-$surum.tar.gz
        deepin-anything-server.sysusers
        fix-include.patch)

derle() {
  cd deepin-anything-$surum
  patch -p1 -i ../fix-include.patch

  make VERSION=$surum
  make VERSION=$surum DESTDIR="$PKG" install

  cp debian/deepin-anything-dkms.dkms "$PKG"/usr/src/deepin-anything-$surum/dkms.conf
  install -Dm644 ../deepin-anything-server.sysusers "$PKG/usr/lib/sysusers.d/deepin-anything-server.conf"
}