blob: 90ccce3b29c03dc648654e0891e9617cf0b540c7 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=epdfview
pkgver=0.1.8
pkgrel=1
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
"
_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="e50285b01612169b2594fea375f53ae4 epdfview-0.1.8.tar.bz2
fbf22bbabdbb7544db615ac5775d57e2 epdfview.desktop.patch"
|