pkgname: libgphoto2 pkgver: '2.5.34' pkgrel: '3' pkgdesc: Core library of gphoto2, designed to allow access to digital camera by external programs. url: 'http://www.gphoto.org/proj/libgphoto2/' arch: x86_64 depends: [] makedepends: - libjpeg-turbo - libexif - libusb-compat source: - 'https://github.com/gphoto/${pkgname}/archive/libgphoto2-2_5_34-release.tar.gz' sha256sums: - f0a65ccc91a869b135782eb78ee025a9d7be4684cb69be9c059d68e049a9a0a4 build: | cd ${pkgname}-${pkgver} autoreconf -fvi ./configure --prefix=/usr --disable-rpath sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/ \ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ \ func_append compile_command " -Wl,-O1,--as-needed"\n \ func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool make make DESTDIR=${PKGDIR} install # Remove unused udev helper rm -r "${PKGDIR}/usr/lib/udev" cd ${PKGDIR}/usr/lib/libgphoto2 export LD_LIBRARY_PATH=${PKGDIR}/usr/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH export CAMLIBS=$PWD/${pkgver} ./print-camera-list hwdb \ | install -Dm644 /dev/stdin ${PKGDIR}/etc/udev/hwdb.d/20-gphoto.hwdb ./print-camera-list udev-rules version 201 \ | install -Dm644 /dev/stdin ${PKGDIR}/etc/udev/rules.d/40-gphoto.rules # Obsolets libs rm -f ${PKGDIR}/usr/lib/libgphoto2.la # rm -f ${PKGDIR}/usr/lib/libgphoto2/2.5.16/*.la rm -f ${PKGDIR}/usr/lib/libgphoto2_port.la #rm -f ${PKGDIR}/usr/lib/libgphoto2_port/0.12.1/*.la package: | true