updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / thunar-notrash / PKGBUILD
blob0db9c90a99a2cdebe91e24a8792d5c85ebbb1b11
1 # Maintainer: Florian Pritz <flo@xssn.at>
4 pkgname=thunar-notrash
5 pkgver=1.3.0
6 pkgrel=1
7 pkgdesc="modern file manager for Xfce with patch to disable trash"
8 arch=('i686' 'x86_64')
9 license=('GPL2' 'LGPL2.1')
10 url="http://thunar.xfce.org"
11 groups=('xfce4')
12 conflicts=(thunar)
13 provides=("thunar=$pkgver")
14 depends=('desktop-file-utils' 'libexif' 'hicolor-icon-theme' 'libnotify' 'udev'
15          'gtk2' 'exo>=0.6.0' 'libxfce4util>=4.8.1' 'libxfce4ui' 'libpng')
16 makedepends=('intltool' 'gtk-doc' 'xfce4-panel>=4.8.0')
17 optdepends=('gvfs: for trash support, mounting with udisk and remote filesystems'
18             'xfce4-panel: for trash applet'
19             'tumbler: for thumbnail previews'
20             'thunar-volman: manages removable devices'
21             'thunar-archive-plugin: create and deflate archives'
22             'thunar-media-tags-plugin: view/edit id3/ogg tags')
23 options=('!libtool')
24 install=thunar-notrash.install
25 backup=('etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla')
26 source=(http://archive.xfce.org/src/xfce/thunar/1.3/Thunar-${pkgver}.tar.bz2
27     Ability_to_disable_trash_on_Thunar_$pkgver.patch
28     org.freedesktop.udisks.pkla)
30 md5sums=('ab6f728384c0d925b40afae2f41268f3'
31          'a2c1ccb1148667395bb3e1f27ba9d467'
32          'a7ddb5eec02d9a8e91a2997862e73cd8')
34 build() {
35   cd ${srcdir}/Thunar-${pkgver}
36   patch -p2 < $srcdir/Ability_to_disable_trash_on_Thunar_$pkgver.patch
38         ./configure --prefix=/usr \
39         --sysconfdir=/etc \
40         --libexecdir=/usr/lib \
41         --localstatedir=/var \
42         --disable-static \
43         --enable-gio-unix \
44         --enable-dbus \
45         --enable-startup-notification \
46         --enable-gudev \
47         --enable-notifications \
48         --enable-exif \
49         --enable-pcre \
50         --enable-gtk-doc \
51         --disable-debug
52   make
55 package() {
56   cd ${srcdir}/Thunar-${pkgver}
57   make DESTDIR=${pkgdir} install
58   sed -i 's:x-directory/gnome-default-handler;::' \
59     ${pkgdir}/usr/share/applications/Thunar-folder-handler.desktop
61   # install udisks permission file
62   install -dm700 ${pkgdir}/etc/polkit-1/localauthority
63   install -dm755 ${pkgdir}/etc/polkit-1/localauthority/50-local.d
64   install -m644 ${srcdir}/org.freedesktop.udisks.pkla ${pkgdir}/etc/polkit-1/localauthority/50-local.d/