2011-07-25 04:38:45 +08:00
|
|
|
#
|
2012-05-09 02:47:51 +08:00
|
|
|
# Core Packages for Chakra, part of chakra-project.org
|
2011-07-25 04:38:45 +08:00
|
|
|
#
|
2012-05-09 02:47:51 +08:00
|
|
|
# maintainer abveritas@chakra-project.org
|
2011-07-25 04:38:45 +08:00
|
|
|
|
|
|
|
pkgname=subversion
|
2012-05-09 02:47:51 +08:00
|
|
|
pkgver=1.7.4
|
|
|
|
pkgrel=1
|
2011-09-13 04:09:02 +08:00
|
|
|
pkgdesc="A Modern Concurrent Version Control System"
|
2011-07-25 04:38:45 +08:00
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
license=('apache' 'bsd')
|
2012-05-09 02:47:51 +08:00
|
|
|
depends=('neon' 'apr-util' 'sqlite3' 'file')
|
|
|
|
optdepends=('kdeutils-kwallet' 'bash-completion: for svn bash completion')
|
2011-09-13 04:09:02 +08:00
|
|
|
makedepends=('krb5' 'apache' 'python2' 'perl' 'swig' 'ruby' 'java-runtime'
|
|
|
|
'autoconf' 'db' 'e2fsprogs' 'kdelibs')
|
2011-07-25 04:38:45 +08:00
|
|
|
backup=('etc/xinetd.d/svn' 'etc/conf.d/svnserve')
|
2011-09-13 04:09:02 +08:00
|
|
|
url="http://subversion.apache.org/"
|
2011-07-25 04:38:45 +08:00
|
|
|
provides=('svn')
|
|
|
|
options=('!makeflags' '!libtool')
|
2012-05-09 02:47:51 +08:00
|
|
|
source=(http://apache.mirror.rafal.ca/subversion/$pkgname-$pkgver.tar.bz2{,.asc}
|
|
|
|
svnserve svn svnserve.conf
|
|
|
|
subversion.rpath.fix.patch)
|
|
|
|
md5sums=('99ace9433be21a4793fc1cdbf2fdea09'
|
|
|
|
'9d7a06743fbb692601d985d852af0f44'
|
2011-09-13 04:09:02 +08:00
|
|
|
'a2b029e8385007ffb99b437b30521c90'
|
|
|
|
'a0db6dd43af33952739b6ec089852630'
|
|
|
|
'c459e299192552f61578f3438abf0664'
|
2012-05-09 02:47:51 +08:00
|
|
|
'6b4340ba9d8845cd8497e013ae01be3f')
|
2011-07-25 04:38:45 +08:00
|
|
|
|
|
|
|
build() {
|
2011-09-13 04:09:02 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
export PYTHON=/usr/bin/python2
|
2011-07-25 04:38:45 +08:00
|
|
|
|
2012-05-09 02:47:51 +08:00
|
|
|
patch -p0 -i ../subversion.rpath.fix.patch
|
|
|
|
sed -i 's|/usr/bin/env python|/usr/bin/env python2|' tools/hook-scripts/{,mailer/{,tests/}}*.py
|
2011-07-25 04:38:45 +08:00
|
|
|
|
|
|
|
# configure
|
2011-09-13 04:09:02 +08:00
|
|
|
autoreconf
|
2011-07-25 04:38:45 +08:00
|
|
|
./configure --prefix=/usr --with-apr=/usr --with-apr-util=/usr \
|
2011-09-13 04:09:02 +08:00
|
|
|
--with-zlib=/usr --with-neon=/usr --with-apxs \
|
|
|
|
--with-sqlite=/usr \
|
|
|
|
--enable-javahl --without-gnome-keyring --with-kwallet
|
2011-07-25 04:38:45 +08:00
|
|
|
|
2012-05-09 02:47:51 +08:00
|
|
|
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
|
2011-09-13 04:09:02 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2011-07-25 04:38:45 +08:00
|
|
|
|
2012-05-09 02:47:51 +08:00
|
|
|
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
|
2011-07-25 04:38:45 +08:00
|
|
|
|
2012-05-09 02:47:51 +08:00
|
|
|
install -d "${pkgdir}"/usr/share/subversion
|
|
|
|
cp -a tools/hook-scripts "${pkgdir}"/usr/share/subversion/
|
|
|
|
rm -f "${pkgdir}"/usr/share/subversion/hook-scripts/*.in
|
2011-07-25 04:38:45 +08:00
|
|
|
|
2012-05-09 02:47:51 +08:00
|
|
|
rm -f "${pkgdir}"/usr/lib/perl5/vendor_perl/auto/SVN/_Core/.packlist
|
|
|
|
rm -rf "${pkgdir}"/usr/lib/perl5/core_perl
|
2011-07-25 04:38:45 +08:00
|
|
|
|
2012-05-09 02:47:51 +08:00
|
|
|
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
|
2011-07-25 04:38:45 +08:00
|
|
|
|
|
|
|
# bash completion
|
2012-05-09 02:47:51 +08:00
|
|
|
install -Dm 644 tools/client-side/bash_completion \
|
|
|
|
"${pkgdir}"/etc/bash_completion.d/subversion
|
2011-07-25 04:38:45 +08:00
|
|
|
}
|
2011-11-29 02:41:05 +08:00
|
|
|
|