summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ce9481c3f88450eb57573b15e75400f7ebf893d5 (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
45
# Maintainer:  Marcell Meszaros < marcell.meszaros AT runbox.eu >
# Contributor: 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=r64.390e6ed
pkgrel=3
pkgdesc="A GTK2 based EPWING dictionary viewer."
arch=('i686' 'x86_64')
url="http://ebview.sourceforge.net"
license=('GPL')
depends=('gtk2' 'libeb' 'pango')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://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
}