be5369a0cb
* fpc is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
19 lines
715 B
Bash
19 lines
715 B
Bash
# Template file for 'fbreader'
|
|
pkgname=fbreader
|
|
version=0.99.4
|
|
revision=4
|
|
build_style=gnu-makefile
|
|
hostmakedepends="pkg-config qt5-host-tools"
|
|
makedepends="fribidi-devel bzip2-devel expat-devel libcurl-devel
|
|
libunibreak-devel sqlite-devel qt5-devel zlib-devel"
|
|
short_desc="E-book reader"
|
|
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.fbreader.org/"
|
|
distfiles="http://www.fbreader.org/files/desktop/${pkgname}-sources-${version}.tgz"
|
|
checksum=3d7c31d5ea314589d2a963290ad16f4d3d631a41e802b8b39f8be0c9f71eb8e9
|
|
|
|
do_build() {
|
|
sed -e "s:-llinebreak:-lunibreak:" -i makefiles/config.mk zlibrary/text/Makefile
|
|
make -j1 -C zlibrary/core TARGET_ARCH=desktop UI_TYPE=dummy
|
|
}
|