#!/bin/bash # readline # # Douglas Thrift # # $Id$ name=readline version=5.2.1 revision=0 categories=(base devel) description='Library for editing command lines as they are typed' url='http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html' depends=('base/glibc') sources=(`site_gnu $name-${version%.*}.tar.gz $(for ((index = 1; index <= ${version##*.}; ++index)); do printf "$name-${version%.*}-patches/$name${version//@(.|.${version##*.})}-%0.3u " $index; done)`) sourcedir=$name-${version%.*} function build() { gnu_patch ${source_files[*]%%*.gz} || return $? gnu_configure --prefix=/usr --infodir=/usr/share/info --libdir=/lib --mandir=/usr/share/man --enable-multibyte install -dv $package/usr/lib mv -v $package/lib/lib@(history|readline).a $package/usr/lib rm -v $package/lib/lib@(history|readline).so for lib in history readline; do ln -sv ../../lib/lib$lib.so.${version%%.*} $package/usr/lib/lib$lib.so done }