summaryrefslogtreecommitdiff
path: root/ebook-tools/Pkgfile
blob: ece86ae0a929a3c160ae604f12f3d46b99571fcb (plain)
    1 # Description: Tools for accessing and converting various ebook file formats
    2 # URL: http://ebook-tools.sourceforge.net/
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: libzip libxml2
    5 
    6 name=ebook-tools
    7 version=0.2.2
    8 release=2
    9 source=(http://downloads.sourceforge.net/sourceforge/$name/$name-$version.tar.gz
   10   # https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/ebook-tools/trunk/crash-fix.patch
   11   crash-fix.patch)
   12 
   13 build() {
   14   patch -Np2 -d $name-$version -i $SRC/crash-fix.patch # https://sourceforge.net/p/ebook-tools/bugs/8/
   15 
   16   cmake -S $name-$version -B build -G Ninja \
   17     -D CMAKE_INSTALL_PREFIX=/usr \
   18     -D CMAKE_BUILD_TYPE=Release \
   19     -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
   20     -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
   21     -Wno-dev
   22   cmake --build build
   23   DESTDIR=$PKG cmake --install build
   24 }

Generated by cgit