APKBUILD 4.77 KB
Newer Older
1
# Contributor: Łukasz Jendrysik
Natanael Copa's avatar
Natanael Copa committed
2 3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=claws-mail
Leo's avatar
Leo committed
4 5 6
pkgver=3.17.6
pkgrel=0
pkgdesc="GTK+ based e-mail client"
7
url="https://www.claws-mail.org"
8
arch="all"
Leo's avatar
Leo committed
9
license="GPL-3.0-or-later"
Natanael Copa's avatar
Natanael Copa committed
10
subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-lang
11 12 13 14 15
	$pkgname-plugins-acpi-notifier:_acpi
	$pkgname-plugins-address-keeper:_address_keeper
	$pkgname-plugins-archive:_archive
	$pkgname-plugins-att-remove:_att_remover
	$pkgname-plugins-attatchwarner:_attatchwarner
16
	$pkgname-plugins-bogofilter:_bogofilter
17 18 19 20 21 22 23 24 25 26 27 28 29
	$pkgname-plugins-clamd:_clamd
	$pkgname-plugins-fetchinfo:_fetchinfo
	$pkgname-plugins-mailmbox:_mailmbox
	$pkgname-plugins-notification:_notification
	$pkgname-plugins-pdf-viewer:_pdf
	$pkgname-plugins-perl:_perl
	$pkgname-plugins-pgp:_pgp
	$pkgname-plugins-rssyl:_rssyl
	$pkgname-plugins-smime:_smime
	$pkgname-plugins-spamassassin:_spamassassin
	$pkgname-plugins-spamreport:_spamreport
	$pkgname-plugins-tnef:_tnef
	$pkgname-plugins-vcalendar:_vcalendar
Leo's avatar
Leo committed
30 31 32
	$pkgname-plugins-dillo:_dillo
	$pkgname-plugins-libravatar:_libravatar
	$pkgname-plugins-managesieve:_managesieve
Natanael Copa's avatar
Natanael Copa committed
33 34
	"

35
makedepends="gtk+-dev startup-notification-dev enchant2-dev
36
	libgcrypt-dev libsm-dev gnutls-dev curl-dev dbus-glib-dev
37
	libetpan-dev openldap-dev gpgme-dev libsoup-dev perl-dev
38 39
	poppler-dev libarchive-dev libnotify-dev pinentry-gtk
	spamassassin libical-dev ytnef-dev bogofilter
40
	automake autoconf libtool
41
	"
42
depends="aspell-en"
43 44 45 46 47 48 49 50
source="https://www.claws-mail.org/download.php?file=releases/claws-mail-$pkgver.tar.gz
	libetpan-1.9.4.patch
	"

prepare() {
	default_prepare
	autoreconf -fi
}
Natanael Copa's avatar
Natanael Copa committed
51

52
build() {
53
	DATADIRNAME=share ./configure \
54 55 56
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Natanael Copa's avatar
Natanael Copa committed
57 58
		--disable-static \
		--enable-enchant \
59
		--enable-gnutls \
Natanael Copa's avatar
Natanael Copa committed
60
		--enable-ldap \
61
		--disable-crash-dialog \
Natanael Copa's avatar
Natanael Copa committed
62 63
		--enable-pgpmime-plugin \
		--enable-spamassassin-plugin \
64
		--enable-bogofilter-plugin \
Natanael Copa's avatar
Natanael Copa committed
65
		--enable-compface \
66
		--enable-pdf_viewer-plugin \
67
		--disable-jpilot \
68
		--disable-bsfilter-plugin \
69
		--disable-newmail-plugin
70 71 72 73

	# force disabling of backtrace. the core dump was more useful
	sed -i -e '/HAVE_BACKTRACE/d' config.h

74
	make
Natanael Copa's avatar
Natanael Copa committed
75 76
	cd tools
	make
77 78 79
}

package() {
80
	make DESTDIR="$pkgdir" install
Natanael Copa's avatar
Natanael Copa committed
81
	find tools -maxdepth 1 -type f -and -perm 111 -or -name '*.conf' | while read i; do
82
		install -D -m755 $i "$pkgdir"/usr/lib/claws-mail/tools/$i
Natanael Copa's avatar
Natanael Copa committed
83 84
	done
}
Natanael Copa's avatar
Natanael Copa committed
85

86
_plugin() {
87
	pkgdesc="$1"
88 89 90
	depends="claws-mail=$pkgver-r$pkgrel $2"
	local _i=
	shift 2
Natanael Copa's avatar
Natanael Copa committed
91
	mkdir -p "$subpkgdir"/usr/lib/claws-mail/plugins
92 93
	for _i; do
		mv "$pkgdir"/usr/lib/claws-mail/plugins/${_i}* \
94
			"$subpkgdir"/usr/lib/claws-mail/plugins/
95
	done
Natanael Copa's avatar
Natanael Copa committed
96 97
}

98 99
_acpi() {
	_plugin "ACPI notification plugin for Claws Mail" "" acpi_notifier
Natanael Copa's avatar
Natanael Copa committed
100 101
}

102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
_address_keeper() {
	_plugin "Never forget a typed address in Claws Mail" "" address_keeper
}

_archive() {
	_plugin "Archiving features for Claws Mail" "" archive
}

_att_remover() {
	_plugin "Attachments remover plugin for Claws Mail" "" att_remover
}

_attatchwarner() {
	_plugin "Attachments warner plugin for Claws Mail" "" attachwarner
}

118
_bogofilter() {
Leo's avatar
Leo committed
119
	_plugin "Bogofilter plugin for Claws Mail" "bogofilter" bogofilter
120 121
}

122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
_clamd() {
	_plugin "Use Clam AntiVirus to scan messages in Claws Mail" "" clamd
}

_fetchinfo() {
	_plugin "Modify headers of downloaded messages in Claws Mail" "" \
		fetchinfo
}

_mailmbox() {
	_plugin "Add support for mailboxes in mbox format to Claws Mail" "" \
		mailmbox
}

_notification() {
	_plugin "Various ways to notify about new messages in Claws Mail" "" \
		notification
}

_pdf() {
	_plugin "PDF and ghostscript viewer plugin Claws Mail" "" pdf
Natanael Copa's avatar
Natanael Copa committed
143 144
}

145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
_perl() {
	_plugin "Perl based extended filtering engine for Claws Mail" "" perl
}

_pgp() {
	_plugin "PGP plugin for signing and encrypting with Claws Mail" \
		"pinentry-gtk" pgp
}

_rssyl() {
	_plugin "RSS plugin for Claws Mail" "" rssyl
}

_smime() {
	_plugin "S/MIME support for Claws Mail" "claws-mail-plugins-pgp" smime
}

_spamassassin() {
	_plugin "Spamassassin plugin for Claws Mail" "spamassassin" spamass
}

_spamreport() {
	_plugin "Report spam mail to various places with Claws Mail" "" \
		spamreport
}

_tnef() {
	_plugin "TNEF message parsing for Claws Mail" "" tnef_parse
}

Leo's avatar
Leo committed
175
_vcalendar() {
176 177 178
	_plugin "Handling of vCalendar messages in Claws Mail" "" vcalendar
}

Leo's avatar
Leo committed
179 180 181 182 183 184 185 186 187 188 189 190
_dillo() {
	_plugin "View HTML messages using the dillo web browser" "dillo" dillo
}

_libravatar() {
	_plugin "Displays libravatar/gravatar profiles' images" "" libravatar
}

_managesieve() {
	_plugin "Manage Sieve filters on servers that support ManageSeieve" "" managesieve
}

Leo's avatar
Leo committed
191
sha512sums="b09e5811e77c19af0359083a635945e0d94ece085efc8b0936e60743c53b40483bfb35e8b52e3fc5ce1474c04710c0ab382916081c4b798a71fdd474fc901c2a  claws-mail-3.17.6.tar.gz
Leo's avatar
Leo committed
192
02d2402d9f63547089d97d7f24b2952271018ed358004e2c740c8c5b3b0f5083d8c5b0bf3f9e77ebcdaabcefce6d096b2aa89969b862c107fdf7a0ff19184c3b  libetpan-1.9.4.patch"