PKGBUILDs/bento4/default/PKGBUILD

40 lines
1.2 KiB
Bash
Raw Normal View History

2016-04-13 23:32:51 +02:00
# Maintainer: Martchus <martchus@gmx.net>
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
# you also find the URL of a binary repository.
2015-11-28 01:09:28 +01:00
pkgname=bento4
2020-09-06 14:53:24 +02:00
pkgver=1.6.0.637
_pkgverstr=1-6-0-637
2015-11-28 01:09:28 +01:00
pkgrel=1
2018-08-23 22:14:20 +02:00
pkgdesc='C++ class library and tools designed to read and write ISO-MP4 files'
2020-04-05 19:31:16 +02:00
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
2018-08-23 22:14:20 +02:00
url='https://www.bento4.com/'
2015-11-28 01:09:28 +01:00
license=('GPL')
2016-02-22 18:34:09 +01:00
makedepends=('cmake')
2015-11-28 01:09:28 +01:00
optdepends=('python')
2020-03-26 20:59:19 +01:00
source=("http://zebulon.bok.net/Bento4/source/Bento4-SRC-${_pkgverstr}.zip")
2020-09-06 14:53:24 +02:00
sha1sums=('45b627e73253a3e03fa31af3b843f2c194f85793')
2015-11-28 01:09:28 +01:00
build() {
2020-03-26 20:59:19 +01:00
cd "${srcdir}"
2018-08-23 22:14:20 +02:00
sed -i "s/ STATIC / SHARED /" CMakeLists.txt
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_SKIP_BUILD_RPATH=ON
make
2015-11-28 01:09:28 +01:00
}
package() {
2020-03-26 20:59:19 +01:00
cd "${srcdir}"
2018-08-23 22:14:20 +02:00
# prevent conflict with libmp4v2
for conflicting_file in mp4extract mp4info; do
mv $conflicting_file $conflicting_file-bento4
2015-12-24 16:50:30 +01:00
done
2018-08-23 22:14:20 +02:00
# install manually (there's no install target)
mkdir -p "${pkgdir}/usr/"{lib,bin}
find -iname '*.so' -exec mv --target-directory="${pkgdir}/usr/lib" {} \;
find -maxdepth 1 -executable -type f -exec mv --target-directory="${pkgdir}/usr/bin" {} \;
}