blob: b7284b1301199543b4a9d45db86f899aef005f8d (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=epdfview
pkgver=0.1.7
pkgrel=5
pkgdesc="A free lightweight PDF document viewer."
url="http://www.emma-soft.com/projects/epdfview/"
arch="all"
license="GPL"
depends="desktop-file-utils hicolor-icon-theme"
makedepends="poppler-gtk-dev cups-dev autoconf automake"
source="http://www.emma-soft.com/projects/$pkgname/chrome/site/releases/$pkgname-$pkgver.tar.bz2
$pkgname.desktop.patch
fix-scrolling.patch
350-coordinates.patch
351-memleak.patch
354-poppler-0.15.patch
"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch)
msg "$i"
patch -p0 -i "$srcdir"/$i || return 1;;
esac
done
# make automake happy
touch ChangeLog
aclocal -I m4 && autoconf && automake && autoheader
}
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
8cb4bc10e91afdb0651df12fa83408d7 350-coordinates.patch
b6595810d47ef70ef6ca87a7de89c117 351-memleak.patch
3718789a62e1d1ce9bb3dec756609df6 354-poppler-0.15.patch"
|