mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 07:33:48 +02:00
New package: mupdf-1.3.
This commit is contained in:
parent
2e8168dbce
commit
6760312183
3 changed files with 74 additions and 0 deletions
1
srcpkgs/mupdf-devel
Symbolic link
1
srcpkgs/mupdf-devel
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
mupdf
|
21
srcpkgs/mupdf/patches/mupdf-1.3-system-libcurl.patch
Normal file
21
srcpkgs/mupdf/patches/mupdf-1.3-system-libcurl.patch
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
--- Makerules 2013-08-27 14:35:11.243520354 +0000
|
||||||
|
+++ 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)
|
||||||
|
+SYS_CURL_LIBS = $(shell pkg-config --libs libcurl)
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
--- Makethird 2013-08-27 15:41:18.043354692 +0000
|
||||||
|
+++ 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
|
52
srcpkgs/mupdf/template
Normal file
52
srcpkgs/mupdf/template
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
# Template file for 'mupdf'
|
||||||
|
pkgname=mupdf
|
||||||
|
version=1.3
|
||||||
|
revision=1
|
||||||
|
wrksrc="${pkgname}-${version}-source"
|
||||||
|
hostmakedepends="pkg-config"
|
||||||
|
makedepends="zlib-devel libcurl-devel freetype-devel libjpeg-turbo-devel jbig2dec-devel libXext-devel desktop-file-utils"
|
||||||
|
short_desc="Lightweight PDF and XPS viewer"
|
||||||
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
license="GPL-3"
|
||||||
|
homepage="http://mupdf.com"
|
||||||
|
distfiles="https://mupdf.googlecode.com/files/mupdf-${version}-source.tar.gz"
|
||||||
|
checksum=aba8b31bee9cc0a16abedab5e31c81c65996cba5591e62a50a79bea2a63d4478
|
||||||
|
|
||||||
|
pre_build() {
|
||||||
|
rm -rf thirdparty/{curl,freetype,jpeg,zlib,jbig2dec}
|
||||||
|
}
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
make ${makejobs} build=release
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
make build=release prefix=${DESTDIR}/usr install
|
||||||
|
|
||||||
|
mv ${DESTDIR}/usr/bin/mupdf-x11-curl ${DESTDIR}/usr/bin/mupdf
|
||||||
|
rm ${DESTDIR}/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
|
||||||
|
|
||||||
|
vinstall mupdf.desktop 644 usr/share/applications
|
||||||
|
vinstall mupdf.xpm 644 usr/share/pixmaps
|
||||||
|
}
|
||||||
|
|
||||||
|
mupdf-devel_package() {
|
||||||
|
short_desc+=" - development files"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/include
|
||||||
|
vmove usr/lib
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mupdf_package() {
|
||||||
|
depends="desktop-file-utils"
|
||||||
|
pkg_install() {
|
||||||
|
vmove all
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue