# $Id: PKGBUILD 63088 2012-01-30 18:55:12Z ibiru $ # Maintainer: Sergej Pupykin # Contributor: William Rea pkgname=fbreader pkgver=0.12.10 pkgrel=3 pkgdesc="An e-book reader for Linux" arch=('i686' 'x86_64') url="http://www.fbreader.org/" license=('GPL') depends=('fribidi' 'bzip2' 'curl' 'gtk2' 'liblinebreak' 'sqlite3') source=(http://www.fbreader.org/files/sources/fbreader-sources-$pkgver.tgz build-fix.patch) md5sums=('da9ec4721efdb0ec0aaa182bff16ad82' '66ac17d8640625b6d2a806de4aa4e76c') build() { export CPPFLAGS="-I/usr/include/cairo" export TARGET_ARCH=desktop export UI_TYPE=gtk export TARGET_STATUS=release export srcdir cd $srcdir/fbreader-$pkgver patch -p0 makefiles/config.mk <$srcdir/build-fix.patch sed -i 's#Library::Library &Library::Instance()#Library \&Library::Instance()#' fbreader/src/library/Library.cpp make INSTALLDIR=/usr make INSTALLDIR=/usr DESTDIR=$pkgdir install }