APKBUILD 3.89 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=subversion
3
pkgver=1.8.1
4
pkgrel=1
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="Replacement for CVS, another versioning system (svn)"
url="http://subversion.tigris.org/"
7
arch="all"
Natanael Copa's avatar
Natanael Copa committed
8
license="apache bsd"
9
depends=
Natanael Copa's avatar
Natanael Copa committed
10
makedepends="apr-dev apr-util-dev expat-dev neon-dev openssl-dev zlib-dev
11
	e2fsprogs-dev sqlite-dev apache2-dev perl-dev swig serf-dev
12
	autoconf automake libtool"
13
install="$pkgname.pre-install"
14 15
subpackages="$pkgname-dev $pkgname-doc mod_dav_svn
	perl-$pkgname:pl $pkgname-libs"
16 17
source="http://apache.uib.no/subversion/subversion-$pkgver.tar.bz2
	subversion-1.7.0-deplibs.patch
18
	subversion-perl-deplibs.patch
Natanael Copa's avatar
Natanael Copa committed
19 20 21 22
	svnserve.confd
	svnserve.initd
	"

23
_builddir="$srcdir"/$pkgname-$pkgver
24 25 26 27 28 29 30 31 32 33
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	./autogen.sh
}

Natanael Copa's avatar
Natanael Copa committed
34
build() {
35
	cd "$_builddir"
36 37 38 39
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Natanael Copa's avatar
Natanael Copa committed
40
		--disable-nls \
41
		--with-apxs \
42
		--with-apache-libexecdir \
43
		--with-swig \
Natanael Copa's avatar
Natanael Copa committed
44
		--disable-javahl \
45
		--disable-static \
46
		--enable-disallowing-of-undefined-references \
47
		--without-jdk \
48
		--with-serf \
49
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
50

51
	make all || return 1
52 53 54 55 56
	make swig-pl-lib || return 1
	(cd subversion/bindings/swig/perl/native ; perl Makefile.PL) || return 1
	# need override LD_RUN_PATH with something valid, otherwise we get
	# empty rpath which is not a good idea.
	make -C subversion/bindings/swig/perl/native LD_RUN_PATH="/usr/lib" EXTRALIBS="-lapr-1" || return 1
57 58 59 60
}

package() {
	cd "$_builddir"
61
	make -j1 DESTDIR="$pkgdir" install install-swig-pl-lib || return 1
62 63
	make pure_vendor_install -C subversion/bindings/swig/perl/native \
		PERL_INSTALL_ROOT="$pkgdir" || return 1
Natanael Copa's avatar
Natanael Copa committed
64
	rm "$pkgdir"/usr/lib/*.la || return 1
65
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
Natanael Copa's avatar
Natanael Copa committed
66 67 68 69

	install -Dm755 "$srcdir"/svnserve.initd "$pkgdir"/etc/init.d/svnserve
	install -Dm644 "$srcdir"/svnserve.confd "$pkgdir"/etc/conf.d/svnserve
}
70 71 72 73 74 75 76 77 78 79 80 81 82 83

libs() {
	pkgdesc="Libraries for Subversion Version Control system"
	replaces="subversion"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/*.so.* "$subpkgdir"/usr/lib/
}

mod_dav_svn() {
	pkgdesc="Apache httpd module for Subversion server"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/apache2 "$subpkgdir"/usr/lib/
}

84 85 86
pl() {
	pkgdesc="Perl bindings to subversion"
	mkdir -p "$subpkgdir"/usr/lib
87
	mv "$pkgdir"/usr/lib/*perl* "$subpkgdir"/usr/lib/
88 89
}

90
md5sums="f2ee0471b8a560f5efa0f2349d9c9ab9  subversion-1.8.1.tar.bz2
91
e1127cb722daecb3c89adbaf9eed7adf  subversion-1.7.0-deplibs.patch
92
39dd787af4f9ca05ab85ce94f4471687  subversion-perl-deplibs.patch
Natanael Copa's avatar
Natanael Copa committed
93
d084a7558053784886bc858b94fa9186  svnserve.confd
94
bedaa1837021bc7654eae333fa9a21f0  svnserve.initd"
95
sha256sums="faaaaedba25777331e761884598af1dd9fe33631d6415b2e0ba5348867c4edb4  subversion-1.8.1.tar.bz2
96 97 98 99
0259a605a62e7a7fe128ee3bfa1264421e4a4ebc66e35c666b59cac97471f5b7  subversion-1.7.0-deplibs.patch
da9cb4a1cf95b15088ab6612691f96b1ab338056843c22b5997238f0aaf2b38f  subversion-perl-deplibs.patch
c70655c073dc06f538c5acdbcd49e216f4be2c859ce395bdf78757a1eeccab00  svnserve.confd
6006058a85cd7d494832075f0f9b881b731089593e0716e13874ff02b7110553  svnserve.initd"
100
sha512sums="f6af9e7a9de41212864c8a8e37cbcab82e2852af516f1068db338acca18b4ab4a3399d47edc99b475581fc254b1db191a5b34b0e5fb0b4283a0d9821b61914e9  subversion-1.8.1.tar.bz2
101 102 103 104
fb219c45b80602d919176cc191394df09f90d0f5c7d24e6a36b166bd92777ecae67eeac1e49c0ffbb0e724396b3d2094dbb0bef17d01dc87d418b1cd554bd7c4  subversion-1.7.0-deplibs.patch
fd6e5f45cff4d3cf0d885a34c822b32141b13b199d99ad8e1b04d641c9c1ee27e73f5c556a4ad54a900b6d39cc14afad17b6738d8af44c76758f1a27b4d49f9a  subversion-perl-deplibs.patch
7fe993443d4d3ef5e1e75f60e85036ee0b2bb2636c2c830210e64f525f95ae4c10ca1dc4504fc36915ec9391815becbe7cbf5f589c28609386d8d079ed02c630  svnserve.confd
28e674b2ce62e117b9b072545610f872f2722d878a46cb1d267908d0ec565e38e1bcc53b7fbd95d7078e97f5e51be601dd0378f7fe4387ce564616199ee2daf9  svnserve.initd"