1
0
forked from ports/contrib

34 lines
1.1 KiB
Plaintext
Raw Normal View History

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
# Depends on: curl fribidi libunibreak sqlite3 qt4
name=fbreader
version=0.99.4
release=1
source=(http://fbreader.org/files/desktop/fbreader-sources-$version.tgz
FBReader-0.99.4-fix-crash-with-fb2.zip-files.patch
fbreader-0.99.4-gcc6-Wno-narrowing.diff
FBReader.desktop)
build () {
cd $name-$version
export TARGET_ARCH=desktop
export UI_TYPE=qt4
export TARGET_STATUS=release
patch -p1 -i $SRC/FBReader-0.99.4-fix-crash-with-fb2.zip-files.patch
patch -p0 -i $SRC/fbreader-0.99.4-gcc6-Wno-narrowing.diff
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
find $PKG/usr/share/FBReader/help ! -name *.en.fb2 -exec rm '{}' \;
find $PKG/usr/share/FBReader/resources ! -name *.en.xml -exec rm '{}' \;
}