summaryrefslogtreecommitdiff
path: root/community/fbreader/PKGBUILD
blob: 7ce430482749c95f89bf8964cf2b040fe587931f (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 32017 2010-11-09 12:39:54Z 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://only.mawhrin.net/fbreader/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
}