aboutsummaryrefslogblamecommitdiffstats
path: root/main/readline/APKBUILD
blob: 4fa4dc6232a654ec3593cd884980f6fee3bb7ec4 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                   
                
              


                              
        

                                  
          
             

                         
                                       
                                                                 

         











                                                                                                      
                                       
                                              
            
 
 

                       





                                             



                       


                                                  
                                                              
                                                
                                                

                                                 
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=readline
pkgver=6.2.004
_myver=${pkgver%.*}
_patchver=${pkgver##*.}
_suff=${_myver%.*}${_myver#*.}
pkgrel=0
pkgdesc="GNU readline library"
url="ftp://ftp.cwru.edu/pub/bash/"
arch="all"
license="GPL"
depends=
makedepends="ncurses-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="http://ftp.gnu.org/gnu/readline/readline-${_myver}.tar.gz
	"

# generate url's to patches. note: no forks allowed!
_i=1
while [ $_i -le $_patchver ]; do
	source="$source http://ftp.gnu.org/gnu/readline/readline-$_myver-patches/readline$_suff-00$_i"
	_i=$(( $_i + 1))
done

_builddir="$srcdir"/$pkgname-$_myver
prepare() {
	cd "$_builddir"
	for i in "$srcdir"/readline$_suff-???; do
		[ -r "$i" ] || continue
		msg "Applying ${i##*/}"
        	patch -Np0 -i ${i} || return 1
	done
}

build() { 
	cd "$_builddir"
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	
	make SHLIB_LIBS=-lncurses || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	
}
md5sums="67948acb2ca081f23359d0256e9a271c  readline-6.2.tar.gz
83287d52a482f790dfb30ec0a8746669  readline62-001
0665020ea118e8434bd145fb71f452cc  readline62-002
c9d5d79718856e711667dede87cb7622  readline62-003
c08e787f50579ce301075c523fa660a4  readline62-004"