#Maintainer: Didier Spaier pkgname=edbrowse pkgver=3.7.4 pkgrel=1slint source=("https://github.com/CMB/edbrowse/archive/v3.7.4.tar.gz" ) options=("nosrcpack" ) docs=("CHANGES" "COPYING*" "README" "TRANSLATORS" "edbrowse.1" "link_to_ncurses.diff") url=http://edbrowse.org/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (a Command Line Editor Browser )" "Edbrowse is a combination editor, browser, and mail client 100% text" "based. The interface is similar to /bin/ed, though there are many" "more features, such as editing multiple files simultaneously, and" "rendering html. This program was originally written for blind users," "but many sighted users have taken advantage of the unique scripting" "capabilities of this program, which can be found nowhere else. A batch" "job, or cron job, can access web pages on the internet, submit forms," "and send email, with no human intervention whatsoever. edbrowse can" "tap into databases through odbc. Primarily written by Karl Dahlke." ) build() { cd $startdir/src/$pkgname-$pkgver mkdir -p $PKG/usr/doc/$pkgname-$pkgver $PKG/usr/man/man1 cp $startdir/edbrowse.1 $PKG/usr/man/man1 rm doc/*.1 cp doc/* $PKG/usr/doc/$pkgname-$pkgver # readline is not linked to ncurses by default, avoid missing symbols patch -p1 --verbose < $startdir/link_to_ncurses.diff mkdir -p build cd build cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_EDBR_ODBC:BOOL=ON \ .. cd ../src make make install DESTDIR=$startdir/pkg cd .. }