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

# source: kirk
TARBALL=aom-$PKGVER.tar.xz
MD5SUM=b3c0d0e3decaed990450f6ff30714f5d
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$TARBALL
BUNDLE=

SLACKREQ=''
SLACKDESC="libaom32: libaom32 $PKGVER (Video coding format)  
libaom32:  
libaom32: AOMedia Video 1 (AV1), is an open, royalty-free video coding 
libaom32: format designed for video transmissions over the Internet. 
libaom32: It is being developed by the Alliance for Open Media (AOMedia), 
libaom32: a consortium of firms from the semiconductor industry, video on 
libaom32: demand providers, and web browser developers, founded in 2015.  
libaom32: AV1 is meant to succeed its predecessor VP9.
libaom32: 
libaom32: git clone --depth=1 https://aomedia.googlesource.com/aom
libaom32: This is 32-bit version of the library
"

### default pkg_download
### default pkg_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/aom* &&
	rm -rf CMakeCache.txt CMakeFiles &&
	#sed -e 's/CMAKE_INSTALL_PREFIX}\/lib/CMAKE_INSTALL_PREFIX}\/lib64/' -i ./CMakeLists.txt &&
	mkdir aom_build &&
	cd aom_build &&
	#cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib64 -DBUILD_SHARED_LIBS=1  &&
	cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -DBUILD_SHARED_LIBS=1  &&
	make $MAKEFLAGS &&
	make install &&
	pkg_build_slackdesc
}
