# $Id: PKGBUILD 144954 2011-12-12 00:43:44Z eric $ # Maintainer: Paul Mattal # Contributor: Jason Chu pkgname=subversion pkgver=1.7.2 pkgrel=1 pkgdesc="A Modern Concurrent Version Control System" arch=('i686' 'x86_64' 'mips64el') license=('APACHE') depends=('neon' 'apr-util' 'sqlite3' 'file') optdepends=('libgnome-keyring' 'kdeutils-kwallet' 'bash-completion: for svn bash completion' \ 'python2: for some hook scripts' 'ruby: for some hook scripts') makedepends=('krb5' 'apache' 'python2' 'perl' 'swig' 'java-runtime' 'java-environment' 'autoconf' 'db' 'e2fsprogs' 'libgnome-keyring' 'kdelibs') [ "$CARCH" = "mips64el" ] && \ makedepends=('krb5' 'apache' 'python2' 'perl' 'swig' 'autoconf' 'db' 'e2fsprogs' 'libgnome-keyring' 'kdelibs') backup=('etc/xinetd.d/svn' 'etc/conf.d/svnserve') url="http://subversion.apache.org/" provides=('svn') options=('!makeflags' '!libtool') source=(http://apache.mirror.rafal.ca/subversion/$pkgname-$pkgver.tar.bz2{,.asc} svnserve svn svnserve.conf svnmerge.py subversion.rpath.fix.patch) build() { cd "${srcdir}/${pkgname}-${pkgver}" export PYTHON=/usr/bin/python2 patch -p0 -i ../subversion.rpath.fix.patch sed -i 's|/usr/bin/env python|/usr/bin/env python2|' tools/hook-scripts/{,mailer/{,tests/}}*.py # configure autoreconf if [ "$CARCH" = "mips64el" ]; then ./configure --prefix=/usr --with-apr=/usr --with-apr-util=/usr \ --with-zlib=/usr --with-neon=/usr --with-apxs \ --with-sqlite=/usr --with-berkeley-db=:/usr/include/:/usr/lib:db-5.2 \ --with-gnome-keyring --with-kwallet else ./configure --prefix=/usr --with-apr=/usr --with-apr-util=/usr \ --with-zlib=/usr --with-neon=/usr --with-apxs \ --with-sqlite=/usr --with-berkeley-db=:/usr/include/:/usr/lib:db-5.2 \ --enable-javahl --with-gnome-keyring --with-kwallet fi make external-all make LT_LDFLAGS="-L$Fdestdir/usr/lib" local-all make swig_pydir=/usr/lib/python2.7/site-packages/libsvn \ swig_pydir_extra=/usr/lib/python2.7/site-packages/svn swig-py swig-pl javahl # swig-rb } #check() { # cd "${srcdir}/${pkgname}-${pkgver}" # export LANG=C LC_ALL=C # make check check-swig-pl check-swig-py check-javahl CLEANUP=yes # check-swig-rb #} package() { cd "${srcdir}/${pkgname}-${pkgver}" export LD_LIBRARY_PATH="${pkgdir}"/usr/lib:$LD_LIBRARY_PATH make DESTDIR="${pkgdir}" INSTALLDIRS=vendor \ swig_pydir=/usr/lib/python2.7/site-packages/libsvn \ swig_pydir_extra=/usr/lib/python2.7/site-packages/svn \ install install-swig-py install-swig-pl install-javahl # install-swig-rb install -d "${pkgdir}"/usr/share/subversion cp -a tools/hook-scripts "${pkgdir}"/usr/share/subversion/ rm -f "${pkgdir}"/usr/share/subversion/hook-scripts/*.in rm -f "${pkgdir}"/usr/lib/perl5/vendor_perl/auto/SVN/_Core/.packlist rm -rf "${pkgdir}"/usr/lib/perl5/core_perl install -D -m 755 "${srcdir}"/svnserve "${pkgdir}"/etc/rc.d/svnserve install -D -m 644 "${srcdir}"/svn "${pkgdir}"/etc/xinetd.d/svn install -D -m 644 "${srcdir}"/svnserve.conf "${pkgdir}"/etc/conf.d/svnserve install -m 755 "${srcdir}"/svnmerge.py "${pkgdir}"/usr/bin/svnmerge # bash completion install -Dm 644 tools/client-side/bash_completion \ "${pkgdir}"/etc/bash_completion.d/subversion }