summaryrefslogtreecommitdiff
path: root/community/fbreader/PKGBUILD
blob: 65d1d98941b9dabb74d7fcbae10ab7b493ba8e62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# $Id: PKGBUILD 58784 2011-11-18 14:18:00Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: William Rea <sillywilly@gmail.com>

pkgname=fbreader
pkgver=0.12.10
pkgrel=2
pkgdesc="An e-book reader for Linux"
arch=('i686' 'x86_64' 'mips64el')
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
}