summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0bb70464b8eced143062be0add30b9658bf08902 (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
#
# PKGBUILD for cone-simple
#
# cone-simple is an stripped package build of cone
#
# This version has no dependencies to other courier libraries (other than the minimal courier-unicode).
#
# Maintainer: Uffe Jakobsen <uffe@uffe.org>
#
#

pkgname=cone-simple
pkgver=2.3
pkgrel=1
epoch=
pkgdesc="Curses text-based mail client - inspired by Alpine - handles multiple POP3, IMAP accounts, and local mail folders. contains a simple newsreader. This version has no dependencies to courier libraries (other than the mandatory courier-unicode)."
arch=('i686' 'x86_64')
_pkgname=cone
url="http://courier-mta.org/cone/"
license=('GPL-3.0-only')
#groups=()
makedepends=('procps-ng')
depends=('glibc' 'libgcc' 'libstdc++' 'libxml2' 'libidn2' 'libldap' 'courier-unicode' 'ncurses' 'openssl')
checkdepends=()
#optdepends=()
provides=('cone')
#conflicts=()
#replaces=()
#backup=()
#options=()
#install=
#changelog=

source=(https://sourceforge.net/projects/courier/files/cone/${pkgver}/cone-${pkgver}.tar.bz2
        #https://sourceforge.net/projects/courier/files/cone/${pkgver}/cone-${pkgver}.tar.bz2.sig
)

#noextract=()

sha256sums=("fe2226b77b6389197b94da353b708da8e5159a8bcef7a99aa2ff746362f9f71c"
            #"SKIP"
)

#
#
#

prepare()
{
  cd "${srcdir}/${_pkgname}-${pkgver}"
}

build()
{
  cd "${srcdir}/${_pkgname}-${pkgver}";
  ./configure -C --without-db --with-certdb=/usr/share/cone/rootcerts --prefix=/usr --exec-prefix=/usr --libexecdir=/usr/lib/cone --sysconfdir=/etc --with-notice=unicode;
  # Add C++17 workaround (https://sourceforge.net/p/courier/mailman/message/59348126/)
  #./configure -C --without-db --with-certdb=/usr/share/cone/rootcerts --prefix=/usr --exec-prefix=/usr --libexecdir=/usr/lib/cone --sysconfdir=/etc --with-notice=unicode CXXFLAGS=--std=gnu++17;
  make;
}

check()
{
  cd "${srcdir}/${_pkgname}-${pkgver}"
  #make -k check
}

package()
{
  cd "${srcdir}/${_pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -m 644 -D "COPYING" "${pkgdir}/usr/share/licenses/${_pkgname}/COPYING"
  install -m 644 -D "COPYING.GPL" "${pkgdir}/usr/share/licenses/${_pkgname}/COPYING.GPL"

}

# EOF