summaryrefslogtreecommitdiffstats
path: root/thunar-notrash/PKGBUILD
blob: 241479f22cb5b437884b93adfcf544e762dac3e0 (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
# $Id$
# Maintainer: tobias <tobias funnychar archlinux.org>
# Contributor: Andrew Simmons <andrew.simmons@gmail.com>

pkgname=thunar-notrash
pkgver=1.0.1
pkgrel=2
pkgdesc="new modern file manager for Xfce with patch to disable trash"
arch=(i686 x86_64)
license=('GPL2' 'LGPL2')
url="http://thunar.xfce.org"
groups=('xfce4')
conflicts=(thunar)
provides=("thunar=$pkgver")
depends=('desktop-file-utils' 'libexif>=0.6.17' 'xfce4-panel>=4.6.1' 'hicolor-icon-theme' 'fam')
makedepends=('intltool' 'pkgconfig')
optdepends=('gamin:   a fam replacement to make thunar monitor changes to files on the fly')
options=('!libtool')
install=${pkgname}.install
source=(http://www.xfce.org/archive/xfce-4.6.1/src/Thunar-${pkgver}.tar.bz2 Ability_to_disable_trash_on_Thunar.patch
    thunar-vfs-fix-umask.patch libpng-1.4.patch)

build() {
  cd ${srcdir}/Thunar-${pkgver}
  patch -p2 < $srcdir/Ability_to_disable_trash_on_Thunar.patch
  patch -p1 < ../libpng-1.4.patch
  patch -Np0 -i ${srcdir}/thunar-vfs-fix-umask.patch

  ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
    --localstatedir=/var --disable-static \
    --disable-gnome-thumbnailers --enable-exif --enable-pcre \
    --disable-wallpaper-plugin
  make || return 1
  make DESTDIR=${pkgdir} install || return 1
  sed -i 's:x-directory/gnome-default-handler;::' \
    ${pkgdir}/usr/share/applications/Thunar-folder-handler.desktop
}
md5sums=('218373aa45d74b6ba8c69c4d5af3bb19'
         '55816882bbeac5bb1153f0b195a220d7'
         '7247041fd2c411e4a129d3f90350893c'
         'ee998c20ba13d0cb18741da8b7d67328')
sha1sums=('2fcd3a7b0e27b01f059dffc8ffdac94e2b2aa064'
          'c4b110b2a83b6d7b88e04bb550d20c598ffe6f82'
          '47526f997627264813843cf466c5ee9335047458'
          '99f520655582acb5bffbee72bf0bc37aef37bc69')