APP=libgphoto2
VERSION=2.5.25
BUILD=1sml
HOMEPAGE="http://www.gphoto.org/"
DOWNLOAD="https://github.com/gphoto/libgphoto2/archive/refs/tags/v2.5.25.tar.gz"
DESC="Digital camera access library"
REQUIRES="libexif libtool"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION 
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --disable-static

  make

  # install udev helper scripts
  make udevscriptdir=/lib/udev utilsdir=/bin
  make udevscriptdir=/lib/udev utilsdir=/bin install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
f48b9360f89458cd8a7ac7675e007e9809b30864b7d2275473136c97f022ac370d19e7f6c15a4bcc558caae9a4cd787ada1f01d08761ec1d19836525e4e7f5ad  libgphoto2-2.5.25.tar.lz
"
