2015-11-28 01:09:28 +01:00
|
|
|
# Maintainer: Martchus <youremail@domain.com>
|
|
|
|
pkgname=bento4
|
2015-11-28 01:35:57 +01:00
|
|
|
pkgver=1.4.3.604
|
|
|
|
_pkgverstr=1-4-3-604
|
2015-11-28 01:09:28 +01:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Bento4 is a C++ class library and tools designed to read and write ISO-MP4 files."
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://www.bento4.com/"
|
|
|
|
license=('GPL')
|
|
|
|
optdepends=('python')
|
|
|
|
source=("http://zebulon.bok.net/Bento4/source/Bento4-SRC-$_pkgverstr.zip")
|
2015-11-28 01:35:57 +01:00
|
|
|
md5sums=('2803b1c0a55c37a723ded7ff44dbfedc')
|
2015-11-28 01:09:28 +01:00
|
|
|
_config="Release"
|
|
|
|
if [ $CARCH == "i686" ]; then
|
|
|
|
_arch="x86"
|
|
|
|
else
|
|
|
|
_arch=$CARCH
|
|
|
|
fi
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "Build/Targets/$_arch-unknown-linux/"
|
|
|
|
sed -i "6s/.*/AP4_BUILD_CONFIG = $_config/" ../../Makefiles/Bootstrap.mak
|
|
|
|
make sdk
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "Build/Targets/$_arch-unknown-linux/$_config/SDK"
|
|
|
|
mkdir -p $pkgdir/usr/bin/
|
2015-11-28 01:35:57 +01:00
|
|
|
mkdir -p $pkgdir/usr/lib/
|
2015-11-28 01:09:28 +01:00
|
|
|
mkdir -p $pkgdir/usr/include/$pkgname/
|
2015-11-28 01:35:57 +01:00
|
|
|
pushd ./bin
|
|
|
|
for file in *; do
|
|
|
|
# prefix binaries with "bento4-" to avoid conflicts
|
|
|
|
install -m755 -D "./$file" "$pkgdir/usr/bin/bento4-$file"
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
install -m644 -D ./lib/*.a $pkgdir/usr/lib/
|
2015-11-28 01:09:28 +01:00
|
|
|
install -m644 -D ./include/*.h $pkgdir/usr/include/$pkgname/
|
|
|
|
}
|