[arch-commits] Commit in mupdf/repos (8 files)

Bartłomiej Piotrowski bpiotrowski at nymeria.archlinux.org
Fri Sep 6 06:55:21 UTC 2013


    Date: Friday, September 6, 2013 @ 08:55:21
  Author: bpiotrowski
Revision: 96830

archrelease: copy trunk to community-i686, community-x86_64

Added:
  mupdf/repos/community-i686/
  mupdf/repos/community-i686/PKGBUILD
    (from rev 96829, mupdf/trunk/PKGBUILD)
  mupdf/repos/community-i686/mupdf-1.3-system-libcurl.patch
    (from rev 96829, mupdf/trunk/mupdf-1.3-system-libcurl.patch)
  mupdf/repos/community-i686/mupdf.install
    (from rev 96829, mupdf/trunk/mupdf.install)
  mupdf/repos/community-x86_64/
  mupdf/repos/community-x86_64/PKGBUILD
    (from rev 96829, mupdf/trunk/PKGBUILD)
  mupdf/repos/community-x86_64/mupdf-1.3-system-libcurl.patch
    (from rev 96829, mupdf/trunk/mupdf-1.3-system-libcurl.patch)
  mupdf/repos/community-x86_64/mupdf.install
    (from rev 96829, mupdf/trunk/mupdf.install)

-------------------------------------------------+
 community-i686/PKGBUILD                         |   55 ++++++++++++++++++++++
 community-i686/mupdf-1.3-system-libcurl.patch   |   21 ++++++++
 community-i686/mupdf.install                    |   12 ++++
 community-x86_64/PKGBUILD                       |   55 ++++++++++++++++++++++
 community-x86_64/mupdf-1.3-system-libcurl.patch |   21 ++++++++
 community-x86_64/mupdf.install                  |   12 ++++
 6 files changed, 176 insertions(+)

Copied: mupdf/repos/community-i686/PKGBUILD (from rev 96829, mupdf/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2013-09-06 06:55:21 UTC (rev 96830)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer:  Bartłomiej Piotrowski <nospam at bpiotrowski.pl>
+# Contributor: Brad Fanella <bradfanella at archlinux.us>
+# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
+# Contributor: Pierre-Paul Paquin <pierrepaulpaquin at gmail.com>
+# Contributor: xduugu
+
+pkgname=mupdf
+pkgver=1.3
+pkgrel=5
+pkgdesc='Lightweight PDF and XPS viewer'
+arch=('i686' 'x86_64')
+url='http://mupdf.com'
+license=('GPL3')
+depends=('curl' 'desktop-file-utils' 'freetype2' 'jbig2dec' 'libjpeg' 'libxext' 'openssl')
+install=mupdf.install
+source=(https://mupdf.googlecode.com/files/$pkgname-$pkgver-source.tar.gz
+        mupdf-1.3-system-libcurl.patch)
+sha256sums=('aba8b31bee9cc0a16abedab5e31c81c65996cba5591e62a50a79bea2a63d4478'
+            '41a3b6df736f971e91c066e73afac286eec8fa37af244a55df52e8b173646f42')
+
+prepare() {
+  cd $pkgname-$pkgver-source
+  rm -rf thirdparty/{curl,freetype,jpeg,zlib,jbig2dec}
+  patch -Np1 -i ../mupdf-1.3-system-libcurl.patch
+}
+
+build() {
+  CFLAGS+=' -fPIC'
+  CXXFLAGS+=' -fPIC'
+
+  cd $pkgname-$pkgver-source
+  make build=release CURL_LIBS='-lcurl -lpthread'
+}
+
+package() {
+  cd $pkgname-$pkgver-source
+  make build=release prefix="$pkgdir"/usr install
+
+  mv "$pkgdir"/usr/bin/mupdf-x11-curl "$pkgdir"/usr/bin/mupdf
+  rm "$pkgdir"/usr/bin/mupdf-x11
+
+  cd platform/debian
+  sed -i -e 's/mupdf.xpm/mupdf/' \
+         -e 's/application\/x-pdf/application\/x-pdf/' \
+         -e 's/mupdf-select-file/mupdf/' \
+         -e 's/^$/NoDisplay=true/' \
+            mupdf.desktop
+  install -Dm644 mupdf.desktop "$pkgdir"/usr/share/applications/mupdf.desktop
+  install -Dm644 mupdf.xpm "$pkgdir"/usr/share/pixmaps/mupdf.xpm
+
+  find "$pkgdir"/usr/include \
+    "$pkgdir"/usr/share \
+    "$pkgdir"/usr/lib -type f | xargs chmod -v 0644
+}

Copied: mupdf/repos/community-i686/mupdf-1.3-system-libcurl.patch (from rev 96829, mupdf/trunk/mupdf-1.3-system-libcurl.patch)
===================================================================
--- community-i686/mupdf-1.3-system-libcurl.patch	                        (rev 0)
+++ community-i686/mupdf-1.3-system-libcurl.patch	2013-09-06 06:55:21 UTC (rev 96830)
@@ -0,0 +1,21 @@
+--- a/Makerules	2013-08-27 14:35:11.243520354 +0000
++++ b/Makerules	2013-08-27 15:40:22.583629510 +0000
+@@ -67,6 +67,8 @@
+ SYS_JBIG2DEC_LIBS = -ljbig2dec
+ SYS_JPEG_LIBS = -ljpeg
+ SYS_ZLIB_LIBS = -lz
++SYS_CURL_CFLAGS = $(shell pkg-config --cflags libcurl) -I/usr/include/curl
++SYS_CURL_LIBS = $(shell pkg-config --libs libcurl)
+ 
+ endif
+ 
+--- a/Makethird	2013-08-27 15:41:18.043354692 +0000
++++ b/Makethird	2013-08-27 15:42:41.332916192 +0000
+@@ -444,5 +444,6 @@
+ CURL_CFLAGS := -I$(CURL_DIR)/include
+ CURL_LIBS := $(SYS_CURL_DEPS)
+ else
+-NOCURL := yes
++CURL_CFLAGS := $(SYS_CURL_CFLAGS)
++CURL_LIBS := $(SYS_CURL_LIBS) $(SYS_CURL_DEPS)
+ endif

Copied: mupdf/repos/community-i686/mupdf.install (from rev 96829, mupdf/trunk/mupdf.install)
===================================================================
--- community-i686/mupdf.install	                        (rev 0)
+++ community-i686/mupdf.install	2013-09-06 06:55:21 UTC (rev 96830)
@@ -0,0 +1,12 @@
+post_install() {
+	update-desktop-database -q
+}
+
+post_upgrade() {
+	post_install
+}
+
+post_remove() {
+	post_install
+}
+

Copied: mupdf/repos/community-x86_64/PKGBUILD (from rev 96829, mupdf/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2013-09-06 06:55:21 UTC (rev 96830)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer:  Bartłomiej Piotrowski <nospam at bpiotrowski.pl>
+# Contributor: Brad Fanella <bradfanella at archlinux.us>
+# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
+# Contributor: Pierre-Paul Paquin <pierrepaulpaquin at gmail.com>
+# Contributor: xduugu
+
+pkgname=mupdf
+pkgver=1.3
+pkgrel=5
+pkgdesc='Lightweight PDF and XPS viewer'
+arch=('i686' 'x86_64')
+url='http://mupdf.com'
+license=('GPL3')
+depends=('curl' 'desktop-file-utils' 'freetype2' 'jbig2dec' 'libjpeg' 'libxext' 'openssl')
+install=mupdf.install
+source=(https://mupdf.googlecode.com/files/$pkgname-$pkgver-source.tar.gz
+        mupdf-1.3-system-libcurl.patch)
+sha256sums=('aba8b31bee9cc0a16abedab5e31c81c65996cba5591e62a50a79bea2a63d4478'
+            '41a3b6df736f971e91c066e73afac286eec8fa37af244a55df52e8b173646f42')
+
+prepare() {
+  cd $pkgname-$pkgver-source
+  rm -rf thirdparty/{curl,freetype,jpeg,zlib,jbig2dec}
+  patch -Np1 -i ../mupdf-1.3-system-libcurl.patch
+}
+
+build() {
+  CFLAGS+=' -fPIC'
+  CXXFLAGS+=' -fPIC'
+
+  cd $pkgname-$pkgver-source
+  make build=release CURL_LIBS='-lcurl -lpthread'
+}
+
+package() {
+  cd $pkgname-$pkgver-source
+  make build=release prefix="$pkgdir"/usr install
+
+  mv "$pkgdir"/usr/bin/mupdf-x11-curl "$pkgdir"/usr/bin/mupdf
+  rm "$pkgdir"/usr/bin/mupdf-x11
+
+  cd platform/debian
+  sed -i -e 's/mupdf.xpm/mupdf/' \
+         -e 's/application\/x-pdf/application\/x-pdf/' \
+         -e 's/mupdf-select-file/mupdf/' \
+         -e 's/^$/NoDisplay=true/' \
+            mupdf.desktop
+  install -Dm644 mupdf.desktop "$pkgdir"/usr/share/applications/mupdf.desktop
+  install -Dm644 mupdf.xpm "$pkgdir"/usr/share/pixmaps/mupdf.xpm
+
+  find "$pkgdir"/usr/include \
+    "$pkgdir"/usr/share \
+    "$pkgdir"/usr/lib -type f | xargs chmod -v 0644
+}

Copied: mupdf/repos/community-x86_64/mupdf-1.3-system-libcurl.patch (from rev 96829, mupdf/trunk/mupdf-1.3-system-libcurl.patch)
===================================================================
--- community-x86_64/mupdf-1.3-system-libcurl.patch	                        (rev 0)
+++ community-x86_64/mupdf-1.3-system-libcurl.patch	2013-09-06 06:55:21 UTC (rev 96830)
@@ -0,0 +1,21 @@
+--- a/Makerules	2013-08-27 14:35:11.243520354 +0000
++++ b/Makerules	2013-08-27 15:40:22.583629510 +0000
+@@ -67,6 +67,8 @@
+ SYS_JBIG2DEC_LIBS = -ljbig2dec
+ SYS_JPEG_LIBS = -ljpeg
+ SYS_ZLIB_LIBS = -lz
++SYS_CURL_CFLAGS = $(shell pkg-config --cflags libcurl) -I/usr/include/curl
++SYS_CURL_LIBS = $(shell pkg-config --libs libcurl)
+ 
+ endif
+ 
+--- a/Makethird	2013-08-27 15:41:18.043354692 +0000
++++ b/Makethird	2013-08-27 15:42:41.332916192 +0000
+@@ -444,5 +444,6 @@
+ CURL_CFLAGS := -I$(CURL_DIR)/include
+ CURL_LIBS := $(SYS_CURL_DEPS)
+ else
+-NOCURL := yes
++CURL_CFLAGS := $(SYS_CURL_CFLAGS)
++CURL_LIBS := $(SYS_CURL_LIBS) $(SYS_CURL_DEPS)
+ endif

Copied: mupdf/repos/community-x86_64/mupdf.install (from rev 96829, mupdf/trunk/mupdf.install)
===================================================================
--- community-x86_64/mupdf.install	                        (rev 0)
+++ community-x86_64/mupdf.install	2013-09-06 06:55:21 UTC (rev 96830)
@@ -0,0 +1,12 @@
+post_install() {
+	update-desktop-database -q
+}
+
+post_upgrade() {
+	post_install
+}
+
+post_remove() {
+	post_install
+}
+




More information about the arch-commits mailing list