updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / libdvdcss-svn / PKGBUILD
blob1278b8051e7b590fbc796a61aa560ec4e341fb4e
1 # Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
3 pkgname=libdvdcss-svn
4 pkgver=244
5 pkgrel=1
6 pkgdesc="A portable abstraction library for DVD decryption"
7 arch=('i686' 'x86_64')
8 license=('GPL')
9 url="http://www.videolan.org/libdvdcss"
10 depends=('glibc')
11 makedepends=('svn')
12 options=('!libtool')
13 provides=('libdvdcss')
14 conflicts=('libdvdcss')
16 _svntrunk="svn://svn.videolan.org/libdvdcss/trunk"
17 _svnmod="libdvdcss"
19 build() {
20   cd ${srcdir}/
21   msg "Connecting to SVN server...."
22   if [ -d ${_svnmod}/.svn ]; then
23     cd ${_svnmod} && svn up
24     cd ..
25   else
26     svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
27   fi
28   msg "SVN checkout done or server timeout"
29   msg "Starting make..."
31   if [ -e ${srcdir}/${_svnmod}-build ]; then
32     rm -rf ${srcdir}/${_svnmod}-build
33   fi
35   cp -r ${srcdir}/${_svnmod} ${srcdir}/${_svnmod}-build
36   cd ${srcdir}/${_svnmod}-build
37   ./bootstrap
38   ./configure --prefix=/usr
39   make
41 package() {
42     cd ${srcdir}/${_svnmod}-build
43     make DESTDIR=${pkgdir} install
44