summaryrefslogtreecommitdiffstats
path: root/main/alpine/APKBUILD
blob: 0213ae5258640adca5f2b8570422c9d5c9f8c805 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alpine
pkgver=2.00_p84
_ver=${pkgver%_p*}
_pver=${pkgver##*_p}
pkgrel=5
pkgdesc="Text-based email client, friendly for novices but powerful"
url="http://www.washington.edu/alpine/"
arch="all"
license="ASL 2.0"
depends=""
makedepends="openldap-dev heimdal-dev ncurses-dev openssl-dev
	automake autoconf libtool"
subpackages="$pkgname-doc"
source="ftp://ftp.cac.washington.edu/alpine/alpine.tar.bz2
	all_p84.patch
	CVE-2008-5514.patch
	libcrypt-underlinking.patch
	libcrypto-underlinking.patch
	uclibc-musl.patch
	"

_builddir="$srcdir"/$pkgname-$_ver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch)
			msg "Applying $i"
			patch -p1 -i "$srcdir"/$i || return 1
			;;
		esac
	done
	libtoolize --force && aclocal -I m4 && autoconf \
		&& automake --force --add-missing || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--without-passfile \
		--without-tcl \
		--disable-shared \
		--with-system-pinerc=/etc/alpine.d/pine.conf \
		--with-system-fixed-pinerc=/etc/alpine.d/pine.conf.fixed \
		|| return 1
	make
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="84e44cbf71ed674800a5d57eed9c1c52  alpine.tar.bz2
785cea92b11d6655c183f3379468a643  all_p84.patch
1b52a54a656979116c09fb1d948a4325  CVE-2008-5514.patch
c0afe83884124c8945db376e91863a83  libcrypt-underlinking.patch
1db0d3aad97a0e11c6910234a802264c  libcrypto-underlinking.patch
f5c328cdc3ac57c66a64bf8ed0f98fc4  uclibc-musl.patch"
sha256sums="c85db8405af90375ba2440c85b7952d80996154e9916b83acca558dc82e0a2a6  alpine.tar.bz2
3e9441b74b54c829f9ac5cc15a82d311cad003632506247a961aa6b344b6603a  all_p84.patch
07fd3dd2ffdfe9e2c952603b9aae099d1250bc89373de3e1a5009ec5d251346b  CVE-2008-5514.patch
fcffe3ae3a44b03880ac2305c269237f3f50bfe68c70b95d73c099500fd0fcdd  libcrypt-underlinking.patch
5af4fd05b91e0c34182b27f2faafc2c5df4ebffcad1042cc5c3cf2fce783ec07  libcrypto-underlinking.patch
72b9decde3a10af694a26fe843f316495e71cc41d047f8ca3dd1d78a6a53bfda  uclibc-musl.patch"
sha512sums="17c6e65fbe767d4f9ffb3d3c2bb3deeab9d3620cd046cbb0009290aa484c9254effa992957631f0603bd82b82aeca2923d391aee6d20a7684d5830fbca8ce4d2  alpine.tar.bz2
c4cb716c9c39af6319ff0fc9839d049a7e30628d93b110f62a49b0bbeea87ede05b6d0945799d45b2a4793ef6efd330a3a3a58555bb44aef5b656964d0d8d5ae  all_p84.patch
c5ed29171b13eb8edc1a8bde0a9923afcb4809bf17da96bc4c72ce501e016494523b0c184754027f9e5fcfec0f0405354e0ebafd6b8e30b9b4986b85e16e881a  CVE-2008-5514.patch
426a51fc157c81ed2d3b70e478c38c1c8a2625ddaafce052a2d43d0979715fdd27d6d62095a80971287bb5e8a9c67d57b9fd224b37fc42ab716a28fceba928eb  libcrypt-underlinking.patch
f00d2d32b92582c7c8d23393cff10e7a3e3c9e510c4cee3479b059c7641a69ca19948db8c57c422e768fdd6bda2f4e4f50d718579f77d5818a74e523026ef479  libcrypto-underlinking.patch
e299995ff60dcaa3c11e07dd9e77c1580e03246a74cc0d75e4da0b46b7cc5742b74efa86cb4149afbca637b9f68deeebe94dddd8e49c692cc10bba4bd5f016b2  uclibc-musl.patch"