summaryrefslogtreecommitdiff
path: root/extra/ebook-tools/PKGBUILD
blob: d896ab7348391f9e0c7c5103b9299299b8b815e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: PKGBUILD 122449 2011-05-04 07:27:45Z andrea $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>

pkgname=ebook-tools
pkgver=0.2.1
pkgrel=2
pkgdesc="Tools for accessing and converting various ebook file formats"
arch=('i686' 'x86_64' 'mips64el')
url="http://sourceforge.net/projects/ebook-tools"
license=('custom')
depends=('libzip' 'libxml2')
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"
}