aboutsummaryrefslogtreecommitdiffstats
path: root/core/readline/APKBUILD
blob: 3c26ba1274908208f8eaeba4d7015dfc55475ffa (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=readline
_myver=6.0
_patchver=003
pkgver=${_myver}.${_patchver}
pkgrel=0
pkgdesc="GNU readline library"
url="ftp://ftp.cwru.edu/pub/bash/"
license="GPL"
depends=
makedepends="ncurses-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="ftp://ftp.gnu.org/gnu/readline/readline-6.0.tar.gz
	ftp://ftp.gnu.org/gnu/readline/readline-6.0-patches/readline60-001
	ftp://ftp.gnu.org/gnu/readline/readline-6.0-patches/readline60-002
	ftp://ftp.gnu.org/gnu/readline/readline-6.0-patches/readline60-003
	"

build () 
{ 
	cd "$srcdir/$pkgname-$_myver"
	for i in "$srcdir"/readline60-???; do
		msg "Applying ${i##*/}"
        	patch -Np2 -i ${i} || return 1
	done

	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	
	make SHLIB_LIBS=-lncurses || return 1
	make DESTDIR="$pkgdir" install || return 1
	
}
md5sums="b7f65a48add447693be6e86f04a63019  readline-6.0.tar.gz
85c01ea031ad38a179053c67186bafed  readline60-001
4fad2a4ce987e3101229d0c8dfb0cd80  readline60-002
80967f663864983a889af2eb53aea177  readline60-003"