# Description: Perl bindings for subversion
# URL: http://subversion.tigris.org
# Maintainer: Jose V Beneyto, sepen at users dot sourceforge dot net
# Packager: Johannes Winkelmann, jw at tks6 dot net
# Depends on: subversion swig

name=subversion-perl
version=1.5.4
release=1
source=(http://subversion.tigris.org/tarballs/subversion-$version.tar.bz2)

build() {
  P5VERSION="$(pkginfo -i | grep '^perl ' | cut -d' ' -f2 | cut -d'-' -f1)"
  
  cd subversion-$version
  
  LDFLAGS="-L$PKG/usr/lib" \
    ./configure --prefix=/usr \
                --disable-nls \
                --with-neon=/usr \
                --disable-mod-activation \
                --with-apr=/usr \
                --with-apr-util=/usr
  
  make DESTDIR=$PKG install-swig-pl-lib install-swig-pl
 
  rm -rf $PKG/usr/lib/perl5/$P5VERSION \
    $PKG/usr/lib/perl5/site_perl/$P5VERSION/linux/auto/SVN/_Core/.packlist \
    $(find $PKG -type f -size 0)
}
