updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / png2theora-svn / PKGBUILD
blob335ad3ee0525d0880831b48838d49d53a9084036
1 pkgname=png2theora-svn
2 pkgver=16987
3 pkgrel=1
4 pkgdesc="Example encoder application; makes an Ogg Theora file from a sequence of png images"
5 arch=('i686' 'x86_64')
6 url="http://www.theora.org"
7 license=('BSD')
8 depends=('libtheora' 'libpng')
9 makedepends=('subversion')
10 source=()
11 md5sums=()
13 _svntrunk=http://svn.xiph.org/trunk/theora-tools/
14 _svnmod=png2theora
16 build() {
17     cd "$srcdir"
19     if [ -d $_svnmod/.svn ]; then
20         (cd $_svnmod && svn up)
21     else
22         svn co $_svntrunk/$_svnmod
23     fi
25     msg "SVN checkout done or server timeout"
26     msg "Starting make..."
28     cd "$srcdir/$_svnmod"
29     gcc -c png2theora.c -o png2theora.o
30     gcc -ltheora -ltheoraenc -ltheoradec -lpng  png2theora.o -o png2theora
32     mkdir -p ${pkgdir}/usr/bin/
33     install -D -m 755 png2theora ${pkgdir}/usr/bin/