Hi,
The git patch for all package and the source code for googlecode.sh is
in 0001-openjpeg pgit patch
Sébastien VINCENT Aka Baste
>From 4b0d578df4c4e0ee5cb100bfaa970c0b7c00f8d1 Mon Sep 17 00:00:00 2001
From: Baste <[email protected]>
Date: Thu, 12 May 2011 22:01:52 +0200
Subject: [PATCH] openjpeg-1.4-1-i686 * new package
---
source/include/googlecode.sh | 9 +++++++-
source/lib-extra/openjpeg/FrugalBuild | 26 +++++++++++++++++++++++++
source/lib-extra/openjpeg/symboliclinks.patch | 11 ++++++++++
3 files changed, 45 insertions(+), 1 deletions(-)
create mode 100644 source/lib-extra/openjpeg/FrugalBuild
create mode 100644 source/lib-extra/openjpeg/symboliclinks.patch
diff --git a/source/include/googlecode.sh b/source/include/googlecode.sh
index ecd3636..59fd6b3 100644
--- a/source/include/googlecode.sh
+++ b/source/include/googlecode.sh
@@ -34,6 +34,9 @@
# * _F_googlecode_dirname (defaults to $_F_googlecode_name): if the
# source tarball uses a name different to the googlecode name, then use
# this option to declare the project name
+# * _F_googlecode_pkgver (defaults to $pkgver): Some packages are called
foo-1.2.3
+# but the source is called different from $pkgver, e.g: foo-123 or vfoo_1_2_3,
in such
+# a case _F_googlecode_pkgver may help to avoid custom $source
# * _F_googlecode_ext (defaults to .tar.gz): extension of the source tarball
# * _F_googlecode_sep ( defaults to - ): used for source() only right now. As
example
# for an "baz_1.2.3.tar.gz" tarball you should use _F_googlecode_sep="_" , for
empty
@@ -48,6 +51,10 @@ if [ -z "$_F_googlecode_dirname" ]; then
_F_googlecode_dirname="$_F_googlecode_name"
fi
+if [ -z "$_F_googlecode_pkgver" ]; then
+ _F_googlecode_pkgver=${pkgver//_/-}
+fi
+
if [ -z "$_F_googlecode_ext" ]; then
_F_googlecode_ext=".tar.gz"
fi
@@ -69,4 +76,4 @@ url="http://code.google.com/p/$_F_googlecode_dirname"
_F_archive_name="$_F_googlecode_name"
Fpkgversep="$_F_googlecode_sep"
up2date="Flastarchive
http://code.google.com/p/$_F_googlecode_dirname/downloads/list
$_F_googlecode_ext"
-source=(http://${_F_googlecode_dirname}.googlecode.com/files/${_F_googlecode_name}${_F_googlecode_sep}${pkgver//_/-}${_F_googlecode_ext})
+source=(http://${_F_googlecode_dirname}.googlecode.com/files/${_F_googlecode_name}${_F_googlecode_sep}${_F_googlecode_pkgver}${_F_googlecode_ext})
diff --git a/source/lib-extra/openjpeg/FrugalBuild
b/source/lib-extra/openjpeg/FrugalBuild
new file mode 100644
index 0000000..99a01ed
--- /dev/null
+++ b/source/lib-extra/openjpeg/FrugalBuild
@@ -0,0 +1,26 @@
+# Compiling Time: 0.03 SBU
+# Maintainer: Not Yet
+# Contributor : Baste <[email protected]>
+
+pkgname=openjpeg
+pkgver=1.4
+pkgextraver=_sources_r697
+pkgrel=1
+_F_archive_prefix="v"
+pkgdesc="An open-source JPEG 2000 codec written in C"
+url="http://www.openjpeg.org/"
+_F_googlecode_pkgver=v1_4_sources_r697
+_F_googlecode_sep="_"
+_F_googlecode_ext=".tgz"
+Finclude googlecode
+Finclude cmake
+depends=('libpng' 'libtiff' 'lcms2')
+makedepends=('cmake')
+groups=('lib-extra')
+archs=('i686')
+source=("${source[@]}" "symboliclinks.patch")
+up2date="Flastarchive
http://code.google.com/p/$_F_googlecode_dirname/downloads/list
$_F_googlecode_ext | sed 's/_/./g'"
+sha1sums=('9ef6a08ecf5944962b4e2cd7569ac01a8eaa66d0' \
+ '9dad3ab3257bb2d034d0bc49aa9c1a0efc1f7c0c')
+
+_F_cd_path="${pkgname}_$_F_googlecode_pkgver"
diff --git a/source/lib-extra/openjpeg/symboliclinks.patch
b/source/lib-extra/openjpeg/symboliclinks.patch
new file mode 100644
index 0000000..db490db
--- /dev/null
+++ b/source/lib-extra/openjpeg/symboliclinks.patch
@@ -0,0 +1,11 @@
+--- openjpeg_v1_4_sources_r697/libopenjpeg/CMakeLists.txt 2011-01-02
19:14:45.000000000 +0100
++++ openjpeg_v1_4_sources_r697/libopenjpeg/CMakeLists_ln.txt 2011-05-07
21:56:12.000000000 +0200
+@@ -43,7 +43,7 @@
+ DESTINATION ${OPENJPEG_INSTALL_INCLUDE_DIR}/${subdir} COMPONENT Headers
+ )
+ INSTALL(CODE
+- "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink
\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${OPENJPEG_INSTALL_INCLUDE_DIR}/${subdir}/openjpeg.h
\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${OPENJPEG_INSTALL_INCLUDE_DIR}/openjpeg.h)")
++ "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink
\${CMAKE_INSTALL_PREFIX}/${OPENJPEG_INSTALL_INCLUDE_DIR}${subdir}/openjpeg.h
\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${OPENJPEG_INSTALL_INCLUDE_DIR}/openjpeg.h)")
+
+ # install man page of the library
+ INSTALL(
--
1.7.5.1
>From 04824a31d29be07741efc58bdbf794420c7c0a6d Mon Sep 17 00:00:00 2001
From: Baste <[email protected]>
Date: Thu, 12 May 2011 22:05:29 +0200
Subject: [PATCH] jbig2dec-0.11-1-i686 * new package
---
source/lib-extra/jbig2dec/FrugalBuild | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
create mode 100644 source/lib-extra/jbig2dec/FrugalBuild
diff --git a/source/lib-extra/jbig2dec/FrugalBuild
b/source/lib-extra/jbig2dec/FrugalBuild
new file mode 100644
index 0000000..52c29b5
--- /dev/null
+++ b/source/lib-extra/jbig2dec/FrugalBuild
@@ -0,0 +1,13 @@
+# Compiling Time: 0.03 SBU
+# Maintainer: Not Yet
+# Contributor : Baste <[email protected]>
+
+pkgname=jbig2dec
+pkgver=0.11
+pkgrel=1
+pkgdesc="A decoder implementation of the JBIG2 image compression format"
+Finclude sourceforge
+depends=('glibc')
+groups=('lib-extra')
+archs=('i686' 'x86_64')
+sha1sums=('349cd765616db7aac1f4dd1d45957d1da65ea925')
--
1.7.5.1
>From ce1702c02c8786b35b81c454e2c9932fb2191b71 Mon Sep 17 00:00:00 2001
From: Baste <[email protected]>
Date: Thu, 12 May 2011 22:09:55 +0200
Subject: [PATCH] mupdf-0.8.165-1-i686 * new package
---
source/xapps-extra/mupdf/FrugalBuild | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
create mode 100644 source/xapps-extra/mupdf/FrugalBuild
diff --git a/source/xapps-extra/mupdf/FrugalBuild
b/source/xapps-extra/mupdf/FrugalBuild
new file mode 100644
index 0000000..c6851f0
--- /dev/null
+++ b/source/xapps-extra/mupdf/FrugalBuild
@@ -0,0 +1,31 @@
+# Compiling Time: 0.07 SBU
+# Maintainer: No Yet
+# Contributor : Baste <[email protected]>
+
+pkgname=mupdf
+pkgver=0.8.165
+pkgrel=1
+pkgdesc="A lightweight PDF and XPS viewer"
+_F_desktop_name="MuPDF"
+_F_desktop_desc="PDF file viewer"
+_F_desktop_icon="$pkgname.png"
+_F_desktop_categories="Graphics;Viewer;"
+depends=('freetype2' 'jbig2dec' 'libjpeg' 'openjpeg' 'zlib' 'libxext')
+groups=('xapps-extra')
+archs=('i686' 'x86_64')
+_F_googlecode_ext="-source.tar.gz"
+Finclude googlecode
+sha1sums=('17222ebc80a482ef7cdb190d015cefd4821028dd')
+
+build()
+{
+ Fcd
+ Fbuild
+ # Rename executables except mupdf due a collision with poppler
+ cd $Fdestdir/usr/bin
+ for i in pdf*; do
+ mv $i $i-mupdf
+ done
+ Ficon $pkgname-$pkgver/debian/$pkgname.png
+ Fdesktop2
+}
--
1.7.5.1
_______________________________________________
Frugalware-devel mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-devel