summaryrefslogtreecommitdiff
path: root/libre/claws-mail-libre/PKGBUILD
blob: 38533f59b34e2c52fb5e128bf3246d0b7c742757 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# $Id$
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>

pkgbase=claws-mail
pkgname=claws-mail-libre
pkgflag=-libre
pkgver=3.9.0
pkgrel=1
pkgdesc='A GTK+ based e-mail client, without nonfree PalmOS handheld devices support'
arch=(
  i686
  x86_64
  mips64el
)
license=GPL3
url="http://www.$pkgbase.org"
depends=(
  db
  dbus-glib
  desktop-file-utils
  enchant
  gnutls
  gpgme
  gtk2
  hicolor-icon-theme
  'libetpan>=1.1'
  libsm
  startup-notification
)
makedepends=(
  bogofilter
  compface
  spamassassin
  valgrind
)
optdepends=(
  'python2:           needed for some tools'
  'perl:              needed for some tools'
  'spamassassin:      adds support for spamfiltering'
  'bogofilter:        adds support for spamfiltering'
)
provides=(
  claws
  $pkgbase
)
conflicts=(
  $pkgbase
)
replaces=(
  $pkgbase
  sylpheed-claws
)
options=(
  '!libtool'
)
install=$pkgbase.install
source=(
  http://downloads.sourceforge.net/sourceforge/sylpheed-claws/$pkgbase-$pkgver.tar.bz2
)
md5sums=(
  4c5ac7b21f0ed17d0f6404124c2229a4
)

build() {
  cd $srcdir/$pkgbase-$pkgver

  sed -i 's@^#!.*python.*@#!/usr/bin/python2@' tools/*.py

  setarch $CARCH ./configure --prefix=/usr\
    --disable-dillo-viewer-plugin\
    --disable-static\
    --enable-bogofilter-plugin\
    --enable-crash-dialog\
    --enable-enchant\
    --enable-gnutls\
    --enable-jpilot\
    --enable-ldap\
    --enable-pgpmime-plugin\
    --enable-spamassassin-plugin

  setarch $CARCH make
}

package() {
  cd $srcdir/$pkgbase-$pkgver
  setarch $CARCH make DESTDIR=$pkgdir install

  # build and install extra tools
  cd tools
  setarch $CARCH make
   # all executables and .conf files ; only top directory
  find -maxdepth 1 -type f -and -perm /111 -or -name '*.conf' | while read i ; do
    install -D -m755 $i $pkgdir/usr/lib/$pkgbase/tools/$i
  done
}