blob: ea56b46284d0c9562cfa5e962ec7db598d789739 (
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
|
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Adrian C. <anrxc..sysphere.org>
pkgname=alpine
pkgver=2.22.r7.dba6c62
_commit=${pkgver##*.}
pkgrel=2
arch=("i686" "pentium4" "x86_64")
pkgdesc="Apache licensed PINE mail user agent"
url="http://alpine.freeiz.com"
license=("APACHE")
depends=("libldap" "krb5" "gettext")
makedepends=('openssl' 'git')
optdepends=("aspell: for spell-checking support"
"hunspell: for spell-checking support"
"topal: glue program that links GnuPG and alpine")
provides=("pine")
conflicts=("pine" "re-alpine")
replaces=("pine")
options=("!makeflags")
source=(
"alpine::git://repo.or.cz/alpine.git#commit=${_commit}"
'rules.patch'
'topal-patch.patch'
'0001-make-subject-setable-by-role.patch'
)
sha512sums=('SKIP'
'b6719c245e5539af07d18b14e4e30e47c8ac1fcd91b431de40e8c0968c09707c1476adb1d322567e0683f28923022aed07291781de055298b49e39d897dbec23'
'bdaf9f0ed2bb9d10eaf4b456e24684cd09eb9e97ae2cf6eb4a2bc2bb5e231e8254d79efa63da9918022302fd970180f2dcd90a69d8c8d817c729c6a18fd6d506'
'116b580630ae487470bf3c691cc4ab08c729298453f1d597ff4e86a6c5da77bcd8a0eef3f4851f23805bc09b6c7a45d9427d4f8e3fd0eeb8d3f6f7cabf4cb10a')
prepare() {
cd "${srcdir}/${pkgname}"
patch -p1 -i "${srcdir}/topal-patch.patch"
patch -p1 -i "${srcdir}/rules.patch"
patch -p1 -i "${srcdir}/0001-make-subject-setable-by-role.patch"
}
pkgver() {
cd "${srcdir}/${pkgname}"
_rev=$(
git rev-parse --short master
)
_pkgver=$(
git archive "${_rev}" -- configure | \
tar -Ox | \
sed -n '
/^\s*VERSION\s*=/!d
=
s/^.*=\s*//
s/['"'"'"]//g
p
q
' | \
sed '
N
s/\n/ /
'
)
_line=${_pkgver% *}
_pkgver=${_pkgver#* }
_rev_count=$(
git rev-list "${_rev}" ^$(git blame -L${_line},${_line} "${_rev}" -- configure | cut -d' ' -f1) --count
)
printf '%s.r%s.%s' \
"${_pkgver}" \
"${_rev_count}" \
"${_rev}"
}
build() {
cd "${srcdir}/${pkgname}"
# Configure Alpine
./configure --prefix=/usr \
--with-passfile=.pine-passfile \
--without-tcl \
--with-system-pinerc=/etc/${pkgname}.d/pine.conf \
--with-system-fixed-pinerc=/etc/${pkgname}.d/pine.conf.fixed
# Build Alpine
make
}
package() {
cd "${srcdir}/${pkgname}"
# Install Alpine
make DESTDIR="${pkgdir}" install
}
|