blob: fc4f503461d006d634ad419fc76011ab84ab30c8 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=epdfview
pkgver=0.1.8
pkgrel=4
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"
subpackages="$pkgname-lang"
source="http://www.emma-soft.com/projects/$pkgname/chrome/site/releases/$pkgname-$pkgver.tar.bz2
$pkgname.desktop.patch
epdfview-0.1.8-glib-2.31-build-fix.patch
"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch)
msg "$i"
patch -p1 -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="e50285b01612169b2594fea375f53ae4 epdfview-0.1.8.tar.bz2
c87ed492dcf64a0b41476989c9282f8b epdfview.desktop.patch
6e52b4bd6996530443eb4477c6f21e3f epdfview-0.1.8-glib-2.31-build-fix.patch"
|