You are not logged in.

#1 2005-08-14 14:57:26

Michel
Member
From: Belgium
Registered: 2004-07-31
Posts: 286

[new] mlt [multimedia]

mlt:

# Contributor: Michel Brabants <michel.linux@tiscali.be>
pkgname=mlt-cvs
pkgver="$(date +"%Y%m%d")"
pkgrel=2
pkgdesc="MLT is an open source multimedia framework, designed and developed for television broadcasting."
#ffmpeg from cvs?
#libsamplerate>=0.1.2 ok? The documentation says that the version should be greater than 0.15. Could be not ok.
depends=('ffmpeg' 'libdv>=0.102' 'gtk2' 'libsamplerate>=0.1.2' 'sdl>=1.2' 'libvorbis>=1.0.1' 'libxml2>=2.5' 'xine-lib')
makedepends=('coreutils' 'cvs' 'patch')
source=('Makefile.patch')
md5sums=('49af812002ed4e275479221d5e0dc8c8')

cvsuser="anonymous"
cvspassword=""
cvsrepositorylocation="cvs.sourceforge.net:/cvsroot/mlt"
cvsdirectory="mlt"

build() {

  #download source from cvs-repository 
  #if mlt wasn't downloaded today, download it then. Give the downloaded directory a more unique name
  if [[ ! -x $startdir/src/$pkgname-$pkgver ]]; then
    cd $startdir/src
    cvs -d:pserver:$cvsuser:$cvspassword@$cvsrepositorylocation login
    cvs -z3 -d:pserver:$cvsuser:$cvspassword@$cvsrepositorylocation co $cvsdirectory || return 1
    mv "$cvsdirectory" "$pkgname-$pkgver"
  #else update it in existing directory
  else
    cd "$startdir/src/$pkgname-$pkgver"
    cvs update -dP
  fi
  
  cd "$startdir/src/$pkgname-$pkgver"
  patch Makefile ../Makefile.patch
  
  ./configure --prefix=/usr --enable-gpl
  make || return 1
  make prefix=$startdir/pkg/usr bindir=$startdir/pkg/usr/bin install
}

Makefile.patch:

--- Makefile    2005-07-28 10:14:57.000000000 +0200
+++ Makefile-new    2005-08-14 14:53:56.000000000 +0200
@@ -36,4 +36,4 @@
     for subdir in $$list; do 
         $(MAKE) -C $$subdir $@ || exit 1; 
     done; 
-    /sbin/ldconfig || true
+    #/sbin/ldconfig || true

EDIT: I made a little change in the PKGBUILD. I forgot the "else"-keyword, so I added it. Michel

Offline

#2 2005-08-14 15:16:29

Michel
Member
From: Belgium
Registered: 2004-07-31
Posts: 286

Re: [new] mlt [multimedia]

Heya,

is there a better way to get the source from cvs? You have to press "enter" manually at the moment.

greetings,

Michel

Offline

#3 2005-08-14 22:39:09

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [new] mlt [multimedia]

try to just use
cvs -z3 -d:pserver:$cvsuser@$cvsrepositorylocation co $cvsdirectory || return 1
line. Official pkg works that way (at least weima-cvs)  and it works for xorg-cvs.
There's info/example here: http://wiki.archlinux.org/index.php/Arc … guidelines

Offline

#4 2005-08-15 15:58:08

Michel
Member
From: Belgium
Registered: 2004-07-31
Posts: 286

Re: [new] mlt [multimedia]

Heya,

I made it a little bit more conform to archlinux packaging standards. It hopefully won't ask for a password anymore. I also changed the name of the package to "mlt-cvs". I also changed the date, so it makes a new package for each day and not for each hour.

It is not completely conform to the standard/example, but I'll notice if they like it. I've seen there is a script to automate the building of cvs-buildfiles. It may not work with my buildfile. I probably will remove the date-command. However, I like the flexibility of my cvs-variables ... I'll have to see how it compares to the  archlinux-packaging standard and what comments I get about it from others.

greetings,

Michel

Offline

Board footer

Powered by FluxBB