### this file is sourced not run
PKGVER=0.27.7
PKGBUILD=1
PKGARCH=x86_64

# source: BLFS 11.3 updated to BLFS SVN r890 downgraded to 0.27.7
TARBALL=exiv2-$PKGVER-Source.tar.gz 
MD5SUM=113e765bdaeb108a37bf126ecb746d80
#SRC_URL=https://github.com/Exiv2/exiv2/archive/v${PKGVER}.tar.gz
SRC_URL=https://github.com/Exiv2/exiv2/releases/download/v$PKGVER/$TARBALL
BUNDLE=

SLACKREQ='expat curl'
SLACKDESC="libexiv2: libexiv2 $PKGVER (Image metadata library)  
libexiv2:  
libexiv2: Exiv2 is a C++ library and a command line utility for managing image 
libexiv2: metadata. It provides fast and easy read and write access to the 
libexiv2: Exif, IPTC and XMP metadata of images in various formats.  
libexiv2: 
libexiv2: https://github.com/Exiv2/exiv2
libexiv2: 
libexiv2: 
libexiv2: 
libexiv2: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	#CONFFLAGS="$CONFFLAGS --disable-static --enable-video --enable-webready --without-ssh"
	CMAKEFLAGS="$CMAKEFLAGS \
		-DCMAKE_BUILD_TYPE=Release \
		-DEXIV2_ENABLE_VIDEO=ON    \
		-DEXIV2_ENABLE_WEBREADY=ON \
		-DEXIV2_ENABLE_CURL=yes	   \
		-DEXIV2_BUILD_SAMPLES=no   \
		-DEXIV2_ENABLE_SSH=OFF     \
	" &&
	pkg_build_cmake &&
	pkg_build_slackdesc
}
