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
"
