blob: 76e277987b148c025c8bd523c3f86392cc0d5e21 (
plain) (
tree)
|
|
# Maintainer:
pkgname=libgphoto2
pkgver=2.5.21
pkgrel=0
pkgdesc="Digital camera library"
url="http://www.gphoto.org"
arch="all"
options="libtool"
license="LGPL-2.1+"
depends=""
depends_dev="libexif-dev libusb-dev"
makedepends="$depends_dev libjpeg-turbo-dev libtool"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
install="$pkgname.pre-install $pkgname.pre-upgrade"
replaces="libgphoto2-dev"
source="https://downloads.sourceforge.net/gphoto/libgphoto2-$pkgver.tar.bz2"
build() {
cd "$builddir"
udevscriptdir=/lib/udev ./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--with-drivers=all \
--disable-static \
--disable-rpath
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
rm -f "$pkgdir"/usr/lib/libgphoto2/*/*.a \
"$pkgdir"/usr/lib/*.a
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" udev-rules \
version 136 group camera mode 0660 > \
"$pkgdir/lib/udev/rules.d/54-gphoto.rules"
}
sha512sums="08e5d6a7b7603b92d3e24d3ee7843aa980525f25b7315e7ca6f17a6a1e059748471d9cf0b19392ea965cf0eb094386be275fcb5b97de1d9e7df6c66fe92a81c6 libgphoto2-2.5.21.tar.bz2"
|