summaryrefslogtreecommitdiff
path: root/extra/subversion/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/subversion/PKGBUILD')
-rw-r--r--extra/subversion/PKGBUILD15
1 files changed, 14 insertions, 1 deletions
diff --git a/extra/subversion/PKGBUILD b/extra/subversion/PKGBUILD
index 8f8e8adbe..bcb020df4 100644
--- a/extra/subversion/PKGBUILD
+++ b/extra/subversion/PKGBUILD
@@ -6,12 +6,16 @@ pkgname=subversion
pkgver=1.6.17
pkgrel=6
pkgdesc="A Modern Concurrent Version Control System"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('apache' 'bsd')
depends=('neon' 'apr-util' 'sqlite3')
optdepends=('libgnome-keyring' 'kdeutils-kwallet' 'bash-completion: for svn bash completion')
makedepends=('krb5' 'apache' 'python2' 'perl' 'swig' 'ruby' 'java-runtime'
'autoconf' 'db' 'e2fsprogs' 'libgnome-keyring' 'kdelibs')
+[ "$CARCH" = "mips64el" ] && \
+makedepends=('krb5' 'apache' 'python2' 'perl' 'swig'
+ 'autoconf' 'sqlite3' 'db' 'e2fsprogs' 'libgnome-keyring' 'kdelibs'
+ 'ruby') #'java-runtime'
backup=('etc/xinetd.d/svn' 'etc/conf.d/svnserve')
url="http://subversion.apache.org/"
provides=('svn')
@@ -42,10 +46,17 @@ build() {
# 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
# build
(make external-all && make LT_LDFLAGS="-L$Fdestdir/usr/lib" local-all )
@@ -82,8 +93,10 @@ package() {
make DESTDIR=${pkgdir} swig-rb
make install-swig-rb DESTDIR=${pkgdir}
+ if [ "$CARCH" != "mips64el" ]; then
make DESTDIR=${pkgdir} javahl
make DESTDIR=${pkgdir} install-javahl
+ fi
install -d ${pkgdir}/etc/{rc.d,xinetd.d,conf.d}