mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
54 lines
1.9 KiB
Bash
54 lines
1.9 KiB
Bash
# 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
|
|
pkgrel=8
|
|
pkgdesc="An e-book reader for Linux"
|
|
arch=('x86_64')
|
|
url="http://www.fbreader.org/"
|
|
license=('GPL')
|
|
depends=('fribidi' 'bzip2' 'curl' 'qt5-base' 'libunibreak' 'sqlite')
|
|
source=(http://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 fbreader-qt5.patch
|
|
arm.patch)
|
|
sha256sums=('3d7c31d5ea314589d2a963290ad16f4d3d631a41e802b8b39f8be0c9f71eb8e9'
|
|
'cb3aa6795c8f7c694ba296f6f6e6a7939648578a289bc84c10f8302c7e72df86'
|
|
'bc67b538c51a5b77468469df6b5e96ce918ee11a5ff4e88e398ad5661d322f9c'
|
|
'9d00f95f2a026b7bdafa6ab8519659cd2c293f1b9b00681a62d3f4992399e716'
|
|
'10ac99e349344b7b0c882d5c6cf50c535321b529d59935d890596ba00349cc25')
|
|
|
|
prepare() {
|
|
cd "$srcdir"/fbreader-$pkgver
|
|
patch -p1 <"$srcdir"/fbreader-0.99.4.patch
|
|
|
|
patch -p0 -i ../fbreader-gcc6.patch # Fix build with GCC6 (Gentoo)
|
|
patch -p1 -i ../fbreader-qt5.patch # Port to Qt5 (Gentoo)
|
|
patch -p1 -i ../arm.patch
|
|
|
|
# Use system FLAGS
|
|
sed -e "s/^CFLAGS = -pipe/CFLAGS +=/" -i makefiles/arch/desktop.mk
|
|
sed -e "/^ CFLAGS +=/d" -i makefiles/config.mk
|
|
sed -e "/^ LDFLAGS += -s$/d" -i makefiles/config.mk
|
|
sed -e "/^LDFLAGS =$/d" -i makefiles/arch/desktop.mk
|
|
sed -e 's|which ccache >|which ccache 2>|' -i makefiles/arch/desktop.mk
|
|
}
|
|
|
|
build() {
|
|
export TARGET_ARCH=desktop
|
|
export UI_TYPE=qt4
|
|
export TARGET_STATUS=release
|
|
export CXXFLAGS+=' -fPIC'
|
|
cd fbreader-$pkgver
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd fbreader-$pkgver
|
|
export CXXFLAGS+=' -fPIC'
|
|
make DESTDIR="$pkgdir" install
|
|
}
|