summaryrefslogtreecommitdiffstats
path: root/main/alpine/APKBUILD
blob: 052db5f6866e97127c9b25dcba65515532381a97 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alpine
pkgver=2.00_p84
_ver=${pkgver%_p*}
_pver=${pkgver##*_p}
pkgrel=3
pkgdesc="Text-based email client, friendly for novices but powerful"
url="http://www.washington.edu/alpine/"
arch="all"
license="APACHE"
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.patch
	"

_builddir="$srcdir"/$pkgname-$_ver
prepare() {
	cd "$_builddir"
	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
b31ed2bf31f80b10f19b4771645f3e75  uclibc.patch"
sha256sums="c85db8405af90375ba2440c85b7952d80996154e9916b83acca558dc82e0a2a6  alpine.tar.bz2
3e9441b74b54c829f9ac5cc15a82d311cad003632506247a961aa6b344b6603a  all_p84.patch
07fd3dd2ffdfe9e2c952603b9aae099d1250bc89373de3e1a5009ec5d251346b  CVE-2008-5514.patch
fcffe3ae3a44b03880ac2305c269237f3f50bfe68c70b95d73c099500fd0fcdd  libcrypt-underlinking.patch
5af4fd05b91e0c34182b27f2faafc2c5df4ebffcad1042cc5c3cf2fce783ec07  libcrypto-underlinking.patch
acf9ddd3b7850b166895373e8c332a35fcece5c1c98af75e24ee1e2033a86c89  uclibc.patch"
sha512sums="17c6e65fbe767d4f9ffb3d3c2bb3deeab9d3620cd046cbb0009290aa484c9254effa992957631f0603bd82b82aeca2923d391aee6d20a7684d5830fbca8ce4d2  alpine.tar.bz2
c4cb716c9c39af6319ff0fc9839d049a7e30628d93b110f62a49b0bbeea87ede05b6d0945799d45b2a4793ef6efd330a3a3a58555bb44aef5b656964d0d8d5ae  all_p84.patch
c5ed29171b13eb8edc1a8bde0a9923afcb4809bf17da96bc4c72ce501e016494523b0c184754027f9e5fcfec0f0405354e0ebafd6b8e30b9b4986b85e16e881a  CVE-2008-5514.patch
426a51fc157c81ed2d3b70e478c38c1c8a2625ddaafce052a2d43d0979715fdd27d6d62095a80971287bb5e8a9c67d57b9fd224b37fc42ab716a28fceba928eb  libcrypt-underlinking.patch
f00d2d32b92582c7c8d23393cff10e7a3e3c9e510c4cee3479b059c7641a69ca19948db8c57c422e768fdd6bda2f4e4f50d718579f77d5818a74e523026ef479  libcrypto-underlinking.patch
f4e4b7e95629c0cc1b07d728bb41a34c76f7a04f1b53c9a4909b62811bb0f0f1717ca78d846f3a17de9376e98daac8245f3f6e42d9f2472da7b569274a3c26b2  uclibc.patch"