summaryrefslogtreecommitdiffstats
path: root/thunar-notrash/PKGBUILD
blob: 2992f8981b7386b235abdc5770093a1f6e2c9b74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Maintainer: Florian Pritz <flo@xssn.at>
# Contributor:: tobias <tobias funnychar archlinux.org>
# Contributor: Andrew Simmons <andrew.simmons@gmail.com>

pkgname=thunar-notrash
pkgver=1.1.6
pkgrel=1
pkgdesc="new modern file manager for Xfce with patch to disable trash"
arch=(i686 x86_64)
license=('GPL2' 'LGPL2.1')
url="http://thunar.xfce.org"
groups=('xfce4')
conflicts=(thunar)
provides=("thunar=$pkgver")
depends=('desktop-file-utils' 'libexif' 'hicolor-icon-theme' 'libnotify' 'udev'
         'gtk2' 'exo>=0.5.4' 'libxfce4util>=4.7.3' 'libxfce4ui' 'libpng') # 'fam' - obsolete?
makedepends=('intltool' 'gtk-doc' 'xfce4-panel>=4.7.4')
optdepends=( # 'gamin:   a fam replacement to make thunar monitor changes to files on the fly'
            'xfce4-panel: for trash applet'
	    'tumbler: for thumbnail previews')
options=('!libtool')
install=thunar-notrash.install
source=(http://archive.xfce.org/src/xfce/thunar/1.1/Thunar-${pkgver}.tar.bz2
    Ability_to_disable_trash_on_Thunar_$pkgver.patch)
md5sums=('a96fdbc0b3d422f864d50374b5d6be41'
         'a2c1ccb1148667395bb3e1f27ba9d467')

build() {
  cd ${srcdir}/Thunar-${pkgver}
  patch -p2 < $srcdir/Ability_to_disable_trash_on_Thunar_$pkgver.patch

	./configure --prefix=/usr \
	--sysconfdir=/etc \
	--libexecdir=/usr/lib \
	--localstatedir=/var \
	--disable-static \
	--enable-gio-unix \
	--enable-dbus \
	--enable-startup-notification \
	--enable-gudev \
	--enable-notifications \
	--enable-exif \
	--enable-pcre \
	--enable-gtk-doc \
	--disable-debug

  make
}

package() {
  cd ${srcdir}/Thunar-${pkgver}
  make DESTDIR=${pkgdir} install
  sed -i 's:x-directory/gnome-default-handler;::' \
    ${pkgdir}/usr/share/applications/Thunar-folder-handler.desktop
}