### this file is sourced not run
PKGVER=2.8
PKGBUILD=1
PKGARCH=i686

# source: post BLFS 7.8 updated 6-12-2018
TARBALL=x265_$PKGVER.tar.gz
MD5SUM=b68dcd4e8a495e53e53034a11fec5eb9
SRC_URL=https://bitbucket.org/multicoreware/x265/downloads/$TARBALL
BUNDLE=

SLACKREQ=''
SLACKDESC="libx265_32: libx265_32 $PKGVER (H.264 codec)  
libx265_32:  
libx265_32: x265 package provides a library for encoding video streams into 
libx265_32: the H.265/HEVC format. 
libx265_32: 
libx265_32: This contains 32-bit version of the library.
libx265_32: 
libx265_32: 
libx265_32: 
libx265_32: 
libx265_32:
"

### default pkg_download
### prepare
### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share
}

### build
pkg_build() {
	cd /tmp/x265* &&
	mkdir bld &&
	cd bld &&
	cmake -DCMAKE_INSTALL_PREFIX=/usr \
		  -DENABLE_STATIC=OFF         \
		  -DLIB_INSTALL_DIR=$LIBDIR   \
		  -DX86_64=0 -Dx64=0          \
		  ../source                   &&
	make $MAKEFLAGS &&
	make install &&
	pkg_build_slackdesc
	
}
