2018-06-04 23:35:57 +00:00
|
|
|
# $Id$
|
2013-04-21 16:26:42 +00:00
|
|
|
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
|
|
# Contributor: William Rea <sillywilly@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - patch to cast qReal's to double's to work with ARM
|
|
|
|
|
|
|
|
pkgname=fbreader
|
|
|
|
pkgver=0.99.4
|
2018-06-04 23:35:57 +00:00
|
|
|
pkgrel=7
|
2013-04-21 16:26:42 +00:00
|
|
|
pkgdesc="An e-book reader for Linux"
|
2018-06-04 23:35:57 +00:00
|
|
|
arch=('x86_64')
|
2013-04-21 16:26:42 +00:00
|
|
|
url="http://www.fbreader.org/"
|
|
|
|
license=('GPL')
|
2013-10-21 14:03:23 +00:00
|
|
|
depends=('fribidi' 'bzip2' 'curl' 'qt4' 'libunibreak' 'sqlite')
|
2013-04-21 16:26:42 +00:00
|
|
|
makedepends=('ccache')
|
2018-06-04 23:35:57 +00:00
|
|
|
source=(https://www.fbreader.org/files/desktop/fbreader-sources-$pkgver.tgz
|
|
|
|
"fbreader-0.99.4.patch::https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-text/fbreader/files/fbreader-0.99.4.patch?revision=1.1"
|
|
|
|
fbreader-gcc6.patch
|
2013-04-21 16:26:42 +00:00
|
|
|
arm.patch)
|
2018-06-04 23:35:57 +00:00
|
|
|
sha256sums=('3d7c31d5ea314589d2a963290ad16f4d3d631a41e802b8b39f8be0c9f71eb8e9'
|
|
|
|
'cb3aa6795c8f7c694ba296f6f6e6a7939648578a289bc84c10f8302c7e72df86'
|
|
|
|
'bc67b538c51a5b77468469df6b5e96ce918ee11a5ff4e88e398ad5661d322f9c'
|
|
|
|
'10ac99e349344b7b0c882d5c6cf50c535321b529d59935d890596ba00349cc25')
|
2013-04-21 16:26:42 +00:00
|
|
|
|
2013-12-09 15:23:42 +00:00
|
|
|
prepare() {
|
2018-06-04 23:35:57 +00:00
|
|
|
cd "$srcdir"/fbreader-$pkgver
|
|
|
|
patch -p1 <"$srcdir"/fbreader-0.99.4.patch
|
|
|
|
|
|
|
|
patch -p0 -i ../fbreader-gcc6.patch # Fix build with GCC6 (Gentoo)
|
2013-12-09 15:23:42 +00:00
|
|
|
patch -p1 -i ../arm.patch
|
|
|
|
}
|
|
|
|
|
2013-04-21 16:26:42 +00:00
|
|
|
build() {
|
|
|
|
export TARGET_ARCH=desktop
|
|
|
|
export UI_TYPE=qt4
|
|
|
|
export TARGET_STATUS=release
|
2018-06-04 23:35:57 +00:00
|
|
|
cd "$srcdir"/fbreader-$pkgver
|
2013-04-21 16:26:42 +00:00
|
|
|
make ZLSHARED=no MOC=/usr/bin/moc-qt4
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2018-06-04 23:35:57 +00:00
|
|
|
cd "$srcdir"/fbreader-$pkgver
|
|
|
|
make ZLSHARED=no DESTDIR="$pkgdir" install
|
2013-04-21 16:26:42 +00:00
|
|
|
}
|