libgphoto2 update, switch to no limit

This commit is contained in:
abveritas 2011-08-11 20:01:20 +00:00
parent d1aec05f92
commit 0134a95449
2 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,53 @@
#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=libgphoto2-nolimit
oldpkgname=libgphoto2
pkgver=2.4.11
pkgrel=1
pkgdesc="The core library of gphoto2. This variation is only to increase the limit of files !"
arch=(i686 x86_64)
url="http://www.gphoto.org"
license=(LGPL)
conflicts=('libgphoto2')
provides=(libgphoto2=${pkgver})
depends=('libexif>=0.6.19' 'libjpeg>=8' 'gd' 'libtool>=2.4' 'libusb')
install=libgphoto2.install
options=('libtool')
source=(http://downloads.sourceforge.net/gphoto/${oldpkgname}-${pkgver}.tar.gz)
md5sums=('a2230c31e320acb7ececd90bc02fe515')
build() {
cd "${srcdir}/${oldpkgname}-${pkgver}"
#Change the limit which cause "Fixed limit exceeded"
sed -i "s#MAX_ENTRIES 1024#MAX_ENTRIES 8192#" libgphoto2/gphoto2-list.c
udevscriptdir=/lib/udev ./configure --prefix=/usr --with-drivers=all --disable-static --disable-rpath
LD_PRELOAD="" make
make DESTDIR="${pkgdir}" install
rm -f ${pkgdir}/usr/lib/libgphoto2/${pkgver}/*.a
install -m755 -d "${pkgdir}/usr/share/hal/fdi/information/20thirdparty"
install -m755 -d "${pkgdir}/lib/udev/rules.d"
LD_LIBRARY_PATH="${pkgdir}/usr/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" \
CAMLIBS="${pkgdir}/usr/lib/libgphoto2/${pkgver}" \
"${pkgdir}/usr/lib/libgphoto2/print-camera-list" hal-fdi > \
"${pkgdir}/usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi"
LD_LIBRARY_PATH="${pkgdir}/usr/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" \
CAMLIBS="${pkgdir}/usr/lib/libgphoto2/${pkgver}" \
"${pkgdir}/usr/lib/libgphoto2/print-camera-list" udev-rules version 136 group camera mode 0660 > \
"${pkgdir}/lib/udev/rules.d/54-gphoto.rules"
# Remove recursive symlink
rm -f "${pkgdir}/usr/include/gphoto2/gphoto2"
}

View File

@ -0,0 +1,16 @@
post_install() {
getent group camera >/dev/null || usr/sbin/groupadd -g 97 camera
/bin/cat <<THEEND
NOTE
----
Add your user to group 'camera' to use camera devices.
THEEND
}
post_upgrade() {
getent group camera >/dev/null || usr/sbin/groupadd -g 97 camera
}
post_remove() {
usr/sbin/groupdel camera &>/dev/null
}