aboutsummaryrefslogblamecommitdiffstats
path: root/main/epdfview/APKBUILD
blob: c4ff565b6312814390b9a279825197021595a70f (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                   
            
        

                                                 
          
             
                                               
                                                        
                           

                                                                                                
                                                

                                                          
         
 
                                    
           
                       



                                
                                                               




                             
                                                                         



                       




                                      



                       












                                                                             
                                                                 
                                                        


                                                                                    
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=epdfview
pkgver=0.1.8
pkgrel=7
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
	epdfview-0.1.8-swap-colors-with-poppler-0.18.patch
	epdfview-0.1.8-cups-1.6.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 --add-missing && 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
c823d279a77a983fe29290c6db2e1881  epdfview-0.1.8-swap-colors-with-poppler-0.18.patch
113bdf270dec17a7bd59ee990e7c0491  epdfview-0.1.8-cups-1.6.patch"