aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-05-23 10:52:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-05-23 10:52:23 +0000
commitc5ccba0b2480f46dc64a8562ebc40af6905017f7 (patch)
tree149eb0edfe1bf2d3d27aa6c38d189d429419eb41 /main
parent27f6d4cd2e95d93f227cf24423b357224480b10f (diff)
downloadaports-c5ccba0b2480f46dc64a8562ebc40af6905017f7.tar.bz2
aports-c5ccba0b2480f46dc64a8562ebc40af6905017f7.tar.xz
main/epdfview: enable printing
Diffstat (limited to 'main')
-rw-r--r--main/epdfview/APKBUILD18
1 files changed, 13 insertions, 5 deletions
diff --git a/main/epdfview/APKBUILD b/main/epdfview/APKBUILD
index c89c1e3166..814ba52139 100644
--- a/main/epdfview/APKBUILD
+++ b/main/epdfview/APKBUILD
@@ -1,27 +1,35 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=epdfview
pkgver=0.1.7
-pkgrel=2
+pkgrel=3
pkgdesc="A free lightweight PDF document viewer."
url="http://www.emma-soft.com/projects/epdfview/"
license="GPL"
#depends="poppler-glib>=0.10.0 heimdal>=1.2.1-1 libcups>=1.3.7-2 gnutls>=2.4.1
depends="desktop-file-utils hicolor-icon-theme"
-makedepends="poppler-gtk-dev"
+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"
-build ()
-{
- cd ""$srcdir"/$pkgname-$pkgver"
+_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 \