#Packager: George Vlahavas pkgname=x265 pkgver=1.9 pkgrel=1gv source=("https://bitbucket.org/multicoreware/x265/downloads/x265_${pkgver}.tar.gz") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=https://bitbucket.org/multicoreware/x265 slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "x265 (Open Source H265/HEVC video encoder)" "x265 is a free software library and application for encoding video" "streams into the H.265/MPEG-H HEVC compression format, and is released" "under the terms of the GNU GPL." ) build() { cd $startdir/src/${pkgname}_${pkgver} cd build/linux cmake \ -DCMAKE_C_FLAGS:STRING="$CFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$CXXFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_INSTALL_DIR=lib${LIBDIRSUFFIX} \ -DCMAKE_BUILD_TYPE=Release ../../source make -j $numjobs || exit 1 make install DESTDIR=$PKG # remove the static lib rm -f $startdir/pkg/usr/lib64/libx265.a }