OCaml 4.14.0 rebuild
[arch-packages.git] / subversion / repos / extra-x86_64 / PKGBUILD
blob0eb59118b1353026f1ef5deb17e974071fb3d27c
1 # Maintainer: Angel Velasquez <angvp@archlinux.org>
2 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 # Contributor: Stéphane Gaudreault <stephane@archlinux.org>
4 # Contributor: Paul Mattal <paul@archlinux.org>
5 # Contributor: Jason Chu <jason@archlinux.org>
7 pkgname=subversion
8 pkgver=1.14.1
9 pkgrel=6
10 pkgdesc="A Modern Concurrent Version Control System"
11 arch=('x86_64')
12 url="https://subversion.apache.org/"
13 license=('APACHE')
14 depends=('file' 'libutf8proc' 'serf' 'sqlite' 'systemd')
15 makedepends=('apache' 'python' 'python-py3c' 'perl' 'swig' 'java-environment>=8'
16              'libgnome-keyring' 'kwallet' 'kdelibs4support' 'ruby')
17 optdepends=('libgnome-keyring: for GNOME Keyring for auth credentials'
18             'kwallet: for KWallet for auth credentials'
19             'bash-completion: for svn bash completion'
20             'python: for some hook scripts'
21             'java-environment: for Java support'
22             'ruby: for some hook scripts')
23 checkdepends=('ruby-test-unit')
24 provides=('svn')
25 backup=('etc/xinetd.d/svn' 'etc/conf.d/svnserve')
26 options=('!makeflags' '!emptydirs')
27 source=(https://www.apache.org/dist/subversion/subversion-${pkgver}.tar.bz2{,.asc}
28         svn
29         svnserve.conf
30         svnserve.tmpfiles
31         svnserve.service
32         subversion.rpath.fix.patch
33         ruby-frozen-nil.patch)
34 sha512sums=('0a70c7152b77cdbcb810a029263e4b3240b6ef41d1c19714e793594088d3cca758d40dfbc05622a806b06463becb73207df249393924ce591026b749b875fcdd'
35             'SKIP'
36             '3df59e92aa0314ff6adce26e2e1162bf2872ca03ff1f78891081a60e67b521b6046b4a2f85f718dcd27f9d5709594658817a09548cdb74e3976d371dbe47e7db'
37             'f7f2ceac2446cc94ac2be3404083cc54a0f1f4d04d5301f600dfafca38819669bcffdfa45f1b90b9f3cdb042469385a764f11dc1a827f10c23ddf73b7ac6c9da'
38             '7775f4da5003970c9ebdc2f696ba090df194a77d9daed791875488c943f72ae496b5f9cc6f3ff9f3f4de9f352a3b518137babdea38947d1a2d5dd16aa1844036'
39             '8cc23ae71bd7ce7c337eaf12929f1af0a11b55250808e88f06397b874daf2efb9491c464be3d082d937a82c2b0b7c3ed06d6695cfd8a3fda1f803bbfd15837de'
40             '60d538160e738eb3b3e84a3881fe5a8d75c79053d3f31c4c29ef6ace6ccc5dd4367ed712766c911bae3436e9706e4dd144b270bb45161a6c1834a37e154d0440'
41             'bb772e55acd9601121ad06b254c364e8d8cf772ca59b8df0cf4c5c5ecba110d4108d0363672f121f770550cdd052802474029e57643258f398aacd2b63ccb898')
42 validpgpkeys=('19BBCAEF7B19B280A0E2175E62D48FAD16A0DE01'
43               '8BC4DAE0C5A4D65F404401074F7DBAA99A59B973'
44               'BA3C15B1337CF0FB222BD41A1BCA6586A347943F'
45               'E7B2A7F4EC28BE9FF8B38BA4B64FFF1209F9FA74'
46               '3D1DC66D6D2E0B9039528138C4A6C625CCC8E1DF'
47               'A844790FB5743606EE95920776D788E1ED1A599C'
48               '7B8CA7F6451AD89C8ADC077B376A3CFD110B1C95'
49               '056F8016D9B87B1BDE41746799EC741B57921ACC'
50               '3F8E467CB3366E3013E1120D583F00ADF981C39F'
51               '91BFBF4D6956BD5DF7B72D23DFE691AE331BA3DB')
52 # Ben Reser / Stefan Sperling / Branko Čibej / Evgeny Kotkov / Bert Huijben / Philip Martin /
53 # Stefan Fuhrmann / Stefan Hett (CODE SIGNING KEY) /Nathan Hartman (CODE SIGNING KEY) / James McCoy
55 prepare() {
56    cd ${pkgname}-${pkgver}
57    patch -Np0 -i ../subversion.rpath.fix.patch
58    patch -p1 -i ../ruby-frozen-nil.patch
59    rm subversion/bindings/swig/proxy/*.swg
61    ./autogen.sh
64 build() {
65    cd ${pkgname}-${pkgver}
66    ./configure --prefix=/usr --with-apxs \
67                --enable-javahl --with-jdk=/usr/lib/jvm/default \
68                --with-gnome-keyring --with-kwallet \
69                --with-apache-libexecdir=/usr/lib/httpd/modules \
70                --with-ruby-sitedir=/usr/lib/ruby/vendor_ruby \
71                --disable-static
73    make LT_LDFLAGS="-L$Fdestdir/usr/lib"
74    make swig_pydir=/usr/lib/python3.10/site-packages/libsvn \
75      swig_pydir_extra=/usr/lib/python3.10/site-packages/svn swig-py swig-pl javahl swig-rb
78 check() {
79    cd ${pkgname}-${pkgver}
80    export LANG=C LC_ALL=C
81    make check check-swig-pl check-swig-py check-swig-rb CLEANUP=yes # check-javahl
84 package() {
85    cd ${pkgname}-${pkgver}
87    export LD_LIBRARY_PATH="${pkgdir}"/usr/lib:${LD_LIBRARY_PATH}
88    make DESTDIR="${pkgdir}" INSTALLDIRS=vendor \
89      swig_pydir=/usr/lib/python3.10/site-packages/libsvn \
90      swig_pydir_extra=/usr/lib/python3.10/site-packages/svn \
91      install install-swig-py install-swig-pl install-javahl install-swig-rb
93    install -dm755 "${pkgdir}"/usr/share/subversion
94    cp -a tools/hook-scripts "${pkgdir}"/usr/share/subversion/
95    rm "${pkgdir}"/usr/share/subversion/hook-scripts/*.in
97    ## svnserve ...
99    # xinetd
100    install -D -m 644 "${srcdir}"/svn "${pkgdir}"/etc/xinetd.d/svn
102    # ... systemd
103    install -D -m 644 "${srcdir}"/svnserve.service  "${pkgdir}"/usr/lib/systemd/system/svnserve.service
104    install -D -m 644 "${srcdir}"/svnserve.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/svnserve.conf
106    # ... common config
107    install -D -m 644 "${srcdir}"/svnserve.conf "${pkgdir}"/etc/conf.d/svnserve
109    install -Dm 644 tools/client-side/bash_completion \
110      "${pkgdir}"/usr/share/bash-completion/completions/subversion
111    for i in svn svnadmin svndumpfilter svnlook svnsync svnversion; do
112       ln -sf subversion "${pkgdir}"/usr/share/bash-completion/completions/${i}
113    done