### this file is sourced not run
PKGVER=0.42
PKGBUILD=1
PKGARCH=i686

# source: james
TARBALL=rlwrap-$PKGVER.tar.gz
MD5SUM=1e04a9dcc0672b02806cc63a0338176a
SRC_URL=http://utopia.knoware.nl/~hlub/rlwrap/$TARBALL
BUNDLE=

SLACKREQ='libreadline' # 
SLACKDESC="rlwrap: rlwrap $PKGVER (Command history tool)  
rlwrap:  
rlwrap: rlwrap is a wrapper that uses the GNU readline library to allow the 
rlwrap: editing of keyboard input for any other command. Input history is kept 
rlwrap: between invocations, separately for each command; history completion 
rlwrap: and search work as in bash and completion word lists can be specified 
rlwrap: on the command line.  
rlwrap: 
rlwrap: 
rlwrap: 
rlwrap: http://utopia.knoware.nl/~hlub/rlwrap/#rlwrap
"

### default pkg_download
### default pkg_prepare
### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share
	mkdir -p usr/bin &&
	mv -v tmp/rlwrap usr/bin/rlwrap-32
}

### build
pkg_build() {
	pkg_build_autoconf &&
	pkg_build_slackdesc &&
	
	# multilib
	mv /usr/bin/rlwrap /tmp
}
