# Maintainer: Natanael Copa pkgname=thunar pkgver=1.8.2 pkgrel=0 pkgdesc="File manager for Xfce" url="https://xfce.org" arch="all" license="GPL-2.0-or-later LGPL-2.0-only" depends="desktop-file-utils hicolor-icon-theme shared-mime-info" depends_dev="exo-dev" makedepends="$depends_dev libexif-dev xfce4-panel-dev pcre-dev libgudev-dev libnotify-dev startup-notification-dev libxfce4ui-dev dbus-glib-dev gtk-doc gtk+3.0-dev glib-dev" install="$pkgname.post-install" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" source="https://archive.xfce.org/src/xfce/thunar/${pkgver%.*}/Thunar-$pkgver.tar.bz2 thunar-sendto-audacious-playlist.desktop thunar-sendto-bluetooth.desktop " builddir="$srcdir"/Thunar-$pkgver prepare() { cd "$builddir" # fix icon in thunar-sendto-email.desktop sed -i 's!internet-mail!mail-message-new!' \ plugins/thunar-sendto-email/thunar-sendto-email.desktop.in.in default_prepare } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ --disable-static \ --enable-exif \ --enable-pcre \ --enable-dbus \ --enable-gio-unix \ --enable-gudev \ --enable-gtk-doc make } check() { cd "$builddir" make check } package() { cd "$builddir" local f make DESTDIR="$pkgdir" install sed -i -e 's:x-directory/gnome-default-handler;::' \ "$pkgdir"/usr/share/applications/Thunar-folder-handler.desktop for f in $source; do case $f in thunar-sendto*.desktop) install -m644 "$srcdir"/$f \ "$pkgdir"/usr/share/Thunar/sendto/ ;; esac done } sha512sums="c770fae8b6e5e0e42148ed2b9777afba5159783e5fc716eba1e0499b5390684f386eb575f1a608814bc118bbf05ede34c6737e28c06470c4d01717b579308ec9 Thunar-1.8.2.tar.bz2 dce525f22abf8e723111673b8fdad48079d5379cef49cc013383bb0944274cdd0de1dda6e8894dd8c9efb54cc9eea2baf8f4c76265665b84f3f58aeb01c72390 thunar-sendto-audacious-playlist.desktop b4e8024e093b8e3f9bf5d460335fd9d19c1e394383bd58a7ac05c720103612dea9dde8a02f090f0af09d89e6644b292236ef257dd1790eccd627efce0577828e thunar-sendto-bluetooth.desktop"