PKGBUILD 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Maintainer (arch): Kyle Keen <keenerd@gmail.com>
  2. # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
  3. # Contributor: schuay <jakob.gruber@gmail.com>
  4. # Contributor: Tom K <tomk@runbox.com>
  5. # Contributor: Thayer Williams <thayer@archlinux.org>
  6. # Contributor: Márcio Silva <coadde@hyperbola.info>
  7. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  8. # Contributor: Michał Masłowski <mtjm@mtjm.eu>
  9. pkgname=epdfview
  10. pkgver=0.1.8
  11. pkgrel=10
  12. pkgrel+=.par1
  13. pkgdesc='Lightweight PDF document viewer'
  14. pkgdesc+=', without nonfree suggestions'
  15. url="http://freecode.com/projects/$pkgname"
  16. arch=('x86_64')
  17. arch+=('i686' 'armv7h')
  18. license=('GPL')
  19. depends=('poppler-glib' 'desktop-file-utils' 'hicolor-icon-theme' 'gtk2' 'xdg-utils')
  20. makedepends=('pkgconfig')
  21. conflicts=("$pkgname-libre")
  22. replaces=("$pkgname-libre")
  23. source=(ftp://ftp.slackware.com/.1/blfs/conglomeration/$pkgname/$pkgname-$pkgver.tar.bz2
  24. $pkgname-0.1.8-swap-the-blue-and-red-channel.patch
  25. $pkgname-0.1.8-glib2-headers.patch
  26. $pkgname-0.1.8-modern-cups.patch
  27. $pkgname-0.1.8-pictures.patch)
  28. md5sums=('e50285b01612169b2594fea375f53ae4'
  29. '7f9ea101a41f5b4e999fd024f423d41f'
  30. '2fffa9c7cd4c5f0744803591c2f162a3'
  31. '5c2cf5612d2a7dfe6cf005b94aeb5ada'
  32. '60064c976f273d86d6254c71b583cf4d')
  33. prepare() {
  34. cd $pkgname-$pkgver
  35. sed -i "s/icon_$pkgname-48/$pkgname/" data/$pkgname.desktop
  36. # Use xdg-open as default browser.
  37. sed -r '/DEFAULT_EXTERNAL_BROWSER_COMMAND_LINE/s/firefox[^ ]*/xdg-open/' -i src/Config.cxx
  38. patch -p1 -i ../$pkgname-0.1.8-swap-the-blue-and-red-channel.patch
  39. patch -p1 -i ../$pkgname-0.1.8-glib2-headers.patch # FS#30116
  40. patch -p1 -i ../$pkgname-0.1.8-modern-cups.patch # FS#32511
  41. patch -p1 -i ../$pkgname-0.1.8-pictures.patch # FS#44936
  42. }
  43. build() {
  44. cd $pkgname-$pkgver
  45. ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
  46. make
  47. }
  48. package() {
  49. cd $pkgname-$pkgver
  50. make DESTDIR="$pkgdir" install
  51. for size in 24 32 48; do
  52. install -Dm644 data/icon_$pkgname-$size.png \
  53. "$pkgdir"/usr/share/icons/hicolor/${size}x${size}/apps/$pkgname.png
  54. done
  55. }