# $Id: PKGBUILD 143766 2011-11-29 01:07:45Z giovanni $ # Maintainer: Giovanni Scafora pkgname=ebook-tools pkgver=0.2.1 pkgrel=4 pkgdesc="Tools for accessing and converting various ebook file formats" arch=('i686' 'x86_64') url="http://sourceforge.net/projects/ebook-tools/" license=('custom') depends=('libzip' 'libxml2' 'convertlit') makedepends=('pkgconfig' 'cmake') source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz") md5sums=('cabbd2ef9148a61ca5f6e60ca63e6045') build() { cd "${srcdir}" mkdir build cd build cmake ../${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr make } package() { cd "${srcdir}/build" make DESTDIR="${pkgdir}" install install -Dm644 ${srcdir}/${pkgname}-${pkgver}/LICENSE \ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }