Username: Password: Remember me
pkgname=2mandvd
pkgver=1.8.5
pkgrel=1
pkgdesc="DVD Authoring Maker In Linux Environnement"
arch=('x86_64')
url="http://2mandvd.tuxfamily.org/"
license=('GPL')
depends=('dvd+rw-tools' 'dvdauthor' 'exif' 'ffmpeg' 'glu' 'mencoder' 'mjpegtools' 'mplayer' 'netpbm' 'perl' 'qt' 'sox' 'transcode' 'ttf-dejavu')
optdepends=('xine-ui: to preview the result')
provides=("${pkgname}")
source=("http://download.tuxfamily.org/${pkgname}/2ManDVD-${pkgver}.tar.gz")
sha1sums=('7f7f1ccf34ea8df1f24f6f28be36ea61012e03bd')
 
build() {
    cd "${srcdir}/2ManDVD"
 
    qmake 2ManDVD.pro
 
    sed -i "41s|#ifdef|//#ifdef|" videowrapper.cpp
    sed -i '42i #if LIBAVFORMAT_VERSION_MAJOR >= 53' videowrapper.cpp
 
    make
}
 
package() {
    cd "${srcdir}/2ManDVD"
 
    sed -i "s|chmod -R 755 /usr/share/2ManDVD|chmod -R 755 \$(INSTALL_ROOT)/usr/share/2ManDVD|" Makefile
 
    make INSTALL_ROOT=${pkgdir} install
}