void-packages/srcpkgs/libgphoto2/template

28 lines
1 KiB
Text

# Template file for 'libgphoto2'
pkgname=libgphoto2
version=2.4.14
revision=4
subpackages="$pkgname-devel"
build_style=gnu-configure
configure_args="--disable-static --disable-rpath udevscriptdir=/usr/lib/udev"
makedepends="pkg-config libltdl-devel libusb-compat-devel libjpeg-turbo-devel gd-devel libexif-devel"
short_desc="Digital camera access library"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://www.gphoto.org"
distfiles="${SOURCEFORGE_SITE}/gphoto/$pkgname-$version.tar.bz2"
checksum=59b32d45252f67d066cc3bda7a59f8078e0cf4e7f23590a4b621633e81060292
post_install() {
# Remove unused udev helper
rm -rf ${pkgdir}/usr/lib/udev
vmkdir usr/lib/udev/rules.d
LD_LIBRARY_PATH="${DESTDIR}/usr/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" \
CAMLIBS="${DESTDIR}/usr/lib/libgphoto2/${version}" \
"${DESTDIR}/usr/lib/libgphoto2/print-camera-list" udev-rules version 136 > \
"${DESTDIR}/usr/lib/udev/rules.d/40-gphoto.rules"
# Remove recursive symlink
rm -f ${DESTDIR}/usr/include/gphoto2/gphoto2
}