PKGBUILDs/community/fbreader/PKGBUILD

51 lines
1.7 KiB
Bash
Raw Normal View History

2013-04-21 16:26:42 +00:00
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: William Rea <sillywilly@gmail.com>
2019-05-01 13:48:08 +00:00
# remove when bumped upstream
2013-04-21 16:26:42 +00:00
pkgname=fbreader
pkgver=0.99.4
2019-05-01 13:01:38 +00:00
pkgrel=8
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')
2019-05-01 13:01:38 +00:00
depends=('fribidi' 'bzip2' 'curl' 'qt5-base' 'libunibreak' 'sqlite')
source=(http://www.fbreader.org/files/desktop/fbreader-sources-$pkgver.tgz
2018-06-04 23:35:57 +00:00
"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"
2019-05-01 13:48:08 +00:00
fbreader-gcc6.patch fbreader-qt5.patch)
2018-06-04 23:35:57 +00:00
sha256sums=('3d7c31d5ea314589d2a963290ad16f4d3d631a41e802b8b39f8be0c9f71eb8e9'
'cb3aa6795c8f7c694ba296f6f6e6a7939648578a289bc84c10f8302c7e72df86'
'bc67b538c51a5b77468469df6b5e96ce918ee11a5ff4e88e398ad5661d322f9c'
2019-05-01 13:48:08 +00:00
'9d00f95f2a026b7bdafa6ab8519659cd2c293f1b9b00681a62d3f4992399e716')
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)
2019-05-01 13:01:38 +00:00
patch -p1 -i ../fbreader-qt5.patch # Port to Qt5 (Gentoo)
# 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
2013-12-09 15:23:42 +00:00
}
2013-04-21 16:26:42 +00:00
build() {
export TARGET_ARCH=desktop
export UI_TYPE=qt4
export TARGET_STATUS=release
2019-05-01 13:01:38 +00:00
export CXXFLAGS+=' -fPIC'
cd fbreader-$pkgver
make
2013-04-21 16:26:42 +00:00
}
package() {
2019-05-01 13:01:38 +00:00
cd fbreader-$pkgver
export CXXFLAGS+=' -fPIC'
make DESTDIR="$pkgdir" install
2013-04-21 16:26:42 +00:00
}