blob: eeaee062a90ef1476c7be1addb9b2aab204a7c00 (
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
69
70
71
72
73
|
# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Contributor: Mariusz Libera <mariusz.libera@gmail.com>
# Contributor: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
# Contributor: Nathan Owe <ndowens04+AUR @ gmail.com>
pkgname=cvs2svn
pkgver=2.5.0
pkgrel=1
pkgdesc='A migration tool for CVS to SVN/Git/Hg/Bzr'
arch=('any')
url='http://cvs2svn.tigris.org/'
license=('custom')
depends=('python2')
changelog=Changelog
source=("${url}files/documents/1462/49543/${pkgname}-${pkgver}.tar.gz")
source=("http://deb.debian.org/debian/pool/main/c/cvs2svn/${pkgname}_${pkgver}.orig.tar.gz")
sha256sums=('6409d118730722f439760d41c08a5bfd05e5d3ff4a666050741e4a5dc2076aea')
prepare() {
cd $srcdir/$pkgname-$pkgver
# python2 fix
for file in $(find . -name '*.py' -print); do
sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
done
sed -i 's/env python/env python2/' cvs2{bzr,git,svn} contrib/cvs2svn*
}
build() {
cd $srcdir/$pkgname-$pkgver
make man
}
package() {
cd $srcdir/$pkgname-$pkgver
python2 ./setup.py install --root=$pkgdir --optimize=1
# license
install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE
# man pages
install -dm755 $pkgdir/usr/share/man/man1
install -m644 *.1 $pkgdir/usr/share/man/man1
# examples
install -dm755 $pkgdir/usr/share/doc/$pkgname/examples
install -m644 cvs2*-example* $pkgdir/usr/share/doc/$pkgname/examples
# contrib
install -dm755 $pkgdir/usr/share/doc/$pkgname/contrib
install -m755 contrib/* $pkgdir/usr/share/doc/$pkgname/contrib
# documentation
install -dm755 $pkgdir/usr/share/doc/$pkgname
install -m644 \
BUGS \
CHANGES \
COMMITTERS \
HACKING \
README \
$pkgdir/usr/share/doc/$pkgname
# developer docs?
install -dm755 $pkgdir/usr/share/doc/$pkgname/doc
install -m644 doc/* $pkgdir/usr/share/doc/$pkgname/doc
# html docs
install -dm755 $pkgdir/usr/share/doc/$pkgname/www
install -m644 www/*.html $pkgdir/usr/share/doc/$pkgname/www
}
|