summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 80a3b00c2be49c045eb7d16c40e82dace8d0f258 (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
33
34
# Maintainer: Yosef Or Boczko <yoseforb@gnome.org>

_pkgname=libgepub
pkgname=$_pkgname-git
pkgver=395779e
pkgrel=1
_realver=0.3
pkgdesc="Simple library to read epub files using glib"
arch=('i686' 'x86_64')
url="http://git.gnome.org/browse/libgepub"
license=('GPL2')
depends=("webkit2gtk" "libsoup" "glib2" "libxml2" "libarchive")
makedepends=("git" "gtk-doc" "gnome-common")
replaces=('libgepub')
provides=('libgepub' "libgepub=$_realver" "$_pkgname=$_realver")
conflicts=('libgepub')
source=('git://git.gnome.org/libgepub')
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --always | sed 's|-|.|g'
}

build() {
  cd "$srcdir/$_pkgname"
  ./autogen.sh --prefix=/usr --enable-gtk-doc
  make
}

package() {
  cd "$srcdir/$_pkgname"
  make DESTDIR="${pkgdir}" install
}