version update, msg txt
[goodguy/history.git] / cinelerra-5.1 / PKGBUILD
1 # Maintainer: goodguy <lists.cinelerra-cv.org>
2 pkgname=cin
3 pkgver=5.1
4 pkgrel=20180331
5 pkgdesc="Cinelerra git://git.cinelerra-cv.org/goodguy/cinelerra.git ($pkgrel)"
6 arch=('x86_64')
7 url="http://www.cinelerra-cv.org"
8 license=('GPL')
9 depends=('xorg-server' 'libpng' 'libxv' 'libva'
10          'libxft' 'freetype2' 'alsa-lib' 'inkscape' 'dvdauthor')
11 makedepends=('yasm' 'nasm' 'cmake'
12          'libxml2' 'perl-xml-libxml' 'perl-xml-parser')
13 conflicts=()
14 source=(https://www.cinelerra-cv.org/five/pkgs/src/cin_$pkgver.$pkgrel-src.tgz)
15 md5sums=('00000000000000000000000000000000')
16
17 prepare() {
18   cd "$srcdir/cinelerra-$pkgver"
19   sed -i 's/\<python\>/python2.7/' ./guicast/Makefile
20 }
21
22 build() {
23   cd "$srcdir/cinelerra-$pkgver"
24   ./autogen.sh
25   export FFMPEG_EXTRA_CFG=" --disable-vdpau"
26   ./configure --prefix=/usr --with-exec-name=$pkgname
27 CFG_VARS="\
28 CFLAGS+=' -Wno-narrowing -O2 -g -fno-omit-frame-pointer' \
29 CXXFLAGS+=' -Wno-narrowing -O2 -g -fno-omit-frame-pointer' \
30 WERROR_CFLAGS+=' -fpermissive'" \
31   make 2>&1 | tee log
32 }
33
34 package() {
35   cd "$srcdir/cinelerra-$pkgver"
36   make install DESTDIR="$pkgdir"
37 }