summaryrefslogtreecommitdiffstats
path: root/main/epdfview/APKBUILD
blob: 0e642d735ac291ff54f78b12b6119959047588af (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
46
47
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=epdfview
pkgver=0.1.7
pkgrel=4
pkgdesc="A free lightweight PDF document viewer."
url="http://www.emma-soft.com/projects/epdfview/"
license="GPL"
depends="desktop-file-utils hicolor-icon-theme"
makedepends="poppler-gtk-dev cups-dev"
source="http://www.emma-soft.com/projects/$pkgname/chrome/site/releases/$pkgname-$pkgver.tar.bz2
	$pkgname.desktop.patch
	fix-scrolling.patch"

_builddir="$srcdir"/$pkgname-$pkgver
package() {
	cd "$_builddir"
	patch -Np0 -i ../epdfview.desktop.patch || return 1
	patch -Np0 -i ../fix-scrolling.patch || return 1
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make -j1 DESTDIR="$pkgdir" install || return 1
	for i in 24 32 48; do
		install -d "$pkgdir"/usr/share/icons/hicolor/${i}x${i}/apps \
			|| return 1
	done
	install -m644 data/icon_epdfview-24.png \
		"$pkgdir"/usr/share/icons/hicolor/24x24/apps/epdfview.png
	install -m644 data/icon_epdfview-32.png \
		"$pkgdir"/usr/share/icons/hicolor/32x32/apps/epdfview.png
	install -m644 data/icon_epdfview-48.png \
		"$pkgdir"/usr/share/icons/hicolor/48x48/apps/epdfview.png
}

md5sums="1919bb19c16ef0a97d48b0a8303d3c7b  epdfview-0.1.7.tar.bz2
fbf22bbabdbb7544db615ac5775d57e2  epdfview.desktop.patch
7a1574e0a8d0bcde316050629fb7bedd  fix-scrolling.patch"