summaryrefslogtreecommitdiff
path: root/user/subversion/APKBUILD
blob: 1d034aff3d3db9eff681850583ab10ebae0b0fd1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=subversion
pkgver=1.11.1
pkgrel=0
pkgdesc="Version control system from 2000"
url="https://subversion.apache.org/"
arch="all"
options="!check"  # Test suite no longer works with Python 3:
                  # https://issues.apache.org/jira/browse/SVN-4811
license="Apache-2.0"
depends=""
depends_dev="apr-dev apr-util-dev linux-headers"
makedepends="apr-dev apr-util-dev cyrus-sasl-dev db-dev dbus-dev file-dev
	kdelibs4support-dev kwallet-dev libsecret-dev lz4-dev openssl-dev
	serf-dev sqlite-dev utf8proc-dev zlib-dev autoconf automake python3"
subpackages="$pkgname-dev $pkgname-doc $pkgname-gnome $pkgname-kwallet
	$pkgname-lang"
source="https://www-eu.apache.org/dist/subversion/subversion-$pkgver.tar.bz2
	apr-1.7.0.patch
	python3-bang.patch
	"

build() {
	# this is only needed for autogen.sh
	_PATH=$PATH
	ln -s /usr/bin/python3 "$srcdir"/python
	export PATH=$srcdir:$PATH
	./autogen.sh
	rm "$srcdir"/python
	export PATH=$_PATH
	# this is needed to fix the apr issue as well as the patch
	# https://issues.apache.org/jira/browse/SVN-4813
	export CPPFLAGS="$CPPFLAGS -P"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-kwallet
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" -j1 install
}

gnome() {
	pkgdesc="$pkgdesc (GNOME Keychain integration)"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/libsvn_auth_gnome* "$subpkgdir"/usr/lib/
}

kwallet() {
	pkgdesc="$pkgdesc (KDE Wallet integration)"
	install_if="$pkgname=$pkgver-r$pkgrel kwallet"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/libsvn_auth_kwallet* "$subpkgdir"/usr/lib/
}

sha512sums="2d082f715bf592ffc6a19311a9320dbae2ff0ee126b0472ce1c3f10e9aee670f43d894889430e6d093620f7b69c611e9a26773bc7a2f8b599ec37540ecd84a8d  subversion-1.11.1.tar.bz2
71b22f08a972a51347af00f979c4ec540c5795b44f3ced07ab2fcf8b1294b59add945983af4a63815d9f5d3b0ba88c24320cf2ec21189bf48c0ec46c7c0b48cf  apr-1.7.0.patch
1b96b791f70c2f6e05da8dbc9d42ccadf4603f25392c6676c4e30ecdb142ce74dd9b8dc27dc68b1cb461f4409d79c4c2aeed1d39a5a442d9349079a819358f5a  python3-bang.patch"