blob: b76db9894c8607baa85d4f6c92b9e7020e79799e (
plain)
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
|
# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: Claudio Riva <firetux83@gmail.com>
_commit='#commit=c22eb71b192f82bb5fb28c251fce14d2aee6bd42' # python3
set -u
_pyver='python'
pkgname='viewvc'
#_pkgno='49241'; pkgver='1.0.13'
#_pkgno='49392'; pkgver='1.1.23'
#_pkgno='49471'; pkgver='1.1.24'
#pkgver='1.1.27'
#pkgver=1.2.1; _pyver='python2'
pkgver=1.3.0.dev.r2596.gc22eb71b
pkgrel=1
pkgdesc='web-based vcs version control repository browsing, formerly viewcvs'
arch=('i686' 'x86_64')
#url='http://viewvc.tigris.org/'
url='https://github.com/viewvc/viewvc'
license=('custom:ViewVC')
depends=('subversion' "${_pyver}" 'diffutils')
makedepends=('cvs' 'rcs')
backup=('usr/share/viewvc/viewvc.conf')
install="${pkgname}.install"
#_verwatch=("${url}/servlets/ProjectDocumentList?folderID=6004" "/files/documents/3330/[0-9]\+/${pkgname}-\([0-9\.]\+\)\.tar\.gz" 'l')
_verwatch=("${url}/releases.atom" "\s\+<title>ViewVC \([^<]\+\)</title>.*" 'f') # RSS
#source=("${url}/files/documents/3330/${_pkgno}/${pkgname}-${pkgver}.tar.gz")
_srcdir="${pkgname}-${pkgver}"
source=("${_srcdir}.tar.gz::${url}/archive/${pkgver}.tar.gz")
md5sums=('4c1bd8b7b54c0d994d58c7073d1c3e1f')
sha256sums=('5fe1e16f986b51a2800d908683673b880684e90ae1611d98744187f0649634f5')
if [ ! -z "${_commit:-}" ]; then
source[0]="git+${url}.git${_commit}"
md5sums[0]='SKIP'
sha256sums[0]='SKIP'
_srcdir="${pkgname}"
pkgver() {
set -u
cd "${_srcdir}"
local _ver="$(sed -n -E -e 's:^__version__ = "([^"]+)".*$:\1:p' 'lib/viewvc.py')" # '
printf '%s.r%s.g%s' "${_ver//-/.}" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
set +u
}
elif [ "${pkgver}" != "${pkgver%.r*}" ]; then
pkgver() {
set -u
printf '%s' "${pkgver%.r*}"
set +u
}
fi
package() {
set -u
cd "${_srcdir}"
sed -e "s@DESTDIR = None@DESTDIR = \"${pkgdir}/\"@g" \
-e "s@ROOT_DIR = None@ROOT_DIR = \"/usr/share/${pkgname}\"@g" \
-i 'viewvc-install'
"${_pyver}" 'viewvc-install'
install -Dpm755 "${pkgdir}/usr/share/${pkgname}/bin/cgi"/viewvc.cgi -t "${pkgdir}/srv/httpd/cgi-bin/"
sed -e "s@#rcs_path = /usr/bin/@rcs_path = /usr/bin/@g" \
-e "s@mime_types_file = /usr/local/apache/conf/mime.types@mime_types_file = /etc/httpd/conf/mime.types@g" \
-i "${pkgdir}/usr/share/viewvc/viewvc.conf"
install -Dpm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}/"
set +u
}
set +u
|