summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 65e3e21fba376f2e22c99d8ae9384ee32c48f29a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: Olaf Bauer <hydro@freenet.de>

pkgname=ttcut
pkgver=0.19.6
pkgrel=2
pkgdesc="MPEG-2 cutting tool for removing commercials from demuxed DVB recordings"
arch=('i686' 'x86_64')
url="https://sourceforge.net/projects/ttcut.berlios/"
license=('GPL')
depends=('qt4' 'libmpeg2' 'glu')
optdepends=('mjpegtools: create preview'
            'mplayer: play preview'
            'transcode: encoding mode')
source=(https://downloads.sourceforge.net/project/${pkgname}.berlios/ttcut-${pkgver}.tar.gz
        ttcut-0.19.6-deprecated.patch
        ttcut-0.19.6-ntsc-fps.patch
        ttcut-0.19.6-ffmpeg-vf-setdar.patch
        ttcut-0.19.6-no_implicit_GLU.patch)
md5sums=('cb7774465b4e92fbdcde23de266a0929'
         'cbf959a2ac67f5a76b5a27043ddcbc49'
         '13d967ec8d1a40d41ca20e4b743eac95'
         '96869a5a33fe632336489a383ad7d629'
         'ed95d6cf9d078bfc0fdd793f2c67773f')

prepare() {
  cd "${srcdir}/${pkgname}"
  patch -p1 -i $srcdir/ttcut-0.19.6-deprecated.patch
  patch -p1 -i $srcdir/ttcut-0.19.6-ntsc-fps.patch
  patch -p1 -i $srcdir/ttcut-0.19.6-ffmpeg-vf-setdar.patch
  patch -p0 -i $srcdir/ttcut-0.19.6-no_implicit_GLU.patch
}

build() {
  cd "${srcdir}/${pkgname}"
  qmake-qt4 ttcut.pro -o Makefile.ttcut 
  make -f Makefile.ttcut 
}

package() {
  cd "${srcdir}/${pkgname}"
  install -D ttcut $pkgdir/usr/bin/ttcut 
}