aboutsummaryrefslogtreecommitdiffstats
path: root/main/alpine/APKBUILD
blob: e699834295e964cd2f6a52c92dcf68166bf2127f (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alpine
pkgver=2.21
_ver=${pkgver%_p*}
_pver=${pkgver##*_p}
pkgrel=1
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 libressl-dev
	automake autoconf libtool"
subpackages="$pkgname-doc"
source="http://alpine.freeiz.com/alpine/release/src/alpine-$pkgver.tar.xz
	uclibc-musl.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 \
		--with-passfile=.pine-pass \
		--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
}

sha512sums="a2a36a033c8af79810816a7da7185c269808ba6d84d013691fd8b3764c63f5fb2284e6844ec5a5e99d168514ae636debf59fae962533a2916679e4e9109c6264  alpine-2.21.tar.xz
1b14352571dd12749bbb6ebc1fd468dbb5a8e4d7a27e87f5baeb00a60d5c1a016d925c6bc776da7e1dbf0ad8d799a65049b64774113274d7ffb07c7b1b196775  uclibc-musl.patch"