summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1154d7e6db9fba89bf26122088f555ff1197dcae (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
35
36
37
38
39
40
41
42
43
44
# Maintainer: Victor Schulz <schulz89 at gmail dot com>
# Contributor: 2ion <dev at 2ion dot de>
# Contributor: TDY <tdy at archlinux dot info>
# Contributor: system <system at tou dot de>

pkgname=ebview-git
pkgver=r61.4dc3ae8
pkgrel=1
pkgdesc="A GTK2 based EPWING dictionary viewer."
arch=('i686' 'x86_64')
url="http://ebview.sourceforge.net"
license=('GPL')
depends=('gtk2' 'eb-library' 'pangox-compat')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git://github.com/fujii/ebview.git')
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/${pkgname%-git}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$srcdir/${pkgname%-git}"
    ./autogen.sh
    ./configure \
	--prefix=/usr \
	--sysconfdir=/etc \
	CFLAGS="-D_FILE_OFFSET_BITS=64" \
	LIBS=-lX11
    make
}

check() {
    cd "$srcdir/${pkgname%-git}"
    make -k check
}

package() {
    cd "$srcdir/${pkgname%-git}"
    make DESTDIR="$pkgdir/" install
}