2018-02-17 20:38:12 +01:00
|
|
|
# Description: An e-book reader for Linux
|
|
|
|
# URL: http://www.fbreader.org/
|
|
|
|
# Maintainer: Pedja, predivan at mts dot rs
|
2018-02-19 17:45:01 +01:00
|
|
|
# Depends on: fribidi libunibreak qt4
|
2018-02-17 20:38:12 +01:00
|
|
|
|
|
|
|
name=fbreader
|
|
|
|
version=0.99.4
|
2018-02-19 17:45:01 +01:00
|
|
|
release=2
|
2018-02-17 20:38:12 +01:00
|
|
|
source=(http://fbreader.org/files/desktop/fbreader-sources-$version.tgz
|
2018-02-19 17:45:01 +01:00
|
|
|
fbreader-0.99.4.patch
|
2018-02-17 20:38:12 +01:00
|
|
|
FBReader.desktop)
|
|
|
|
|
|
|
|
build () {
|
|
|
|
cd $name-$version
|
|
|
|
|
2018-02-19 17:45:01 +01:00
|
|
|
# export CFLAGS="${CFLAGS} -std=c++11"
|
|
|
|
patch -p1 -i $SRC/fbreader-0.99.4.patch
|
|
|
|
|
|
|
|
# Respect *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
|
|
|
|
|
|
|
|
echo "TARGET_ARCH = desktop" > makefiles/target.mk
|
|
|
|
echo "UI_TYPE = qt4" >> makefiles/target.mk
|
|
|
|
echo "TARGET_STATUS = release" >> makefiles/target.mk
|
|
|
|
|
2018-02-17 20:38:12 +01:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
mkdir -p $PKG/usr/share/man/man1
|
|
|
|
install -m644 fbreader/desktop/FBReader.1 $PKG/usr/share/man/man1
|
|
|
|
|
|
|
|
mkdir -p $PKG/usr/share/applications/
|
|
|
|
install -m644 $SRC/FBReader.desktop $PKG/usr/share/applications/FBReader.desktop
|
|
|
|
}
|