blob: 9dc901273840ff1832fc8d4edd46adb40d7663d1 (
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
|
# Maintainer: Piotr Rogoża <rogoza dot piotr at gmail dot com>
# Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com>
# vim:set ts=2 sw=2 et ft=sh tw=100: expandtab
pkgname=itk-cvs
pkgver=3.4
pkgrel=2
pkgdesc='a framework for building mega-widgets using the [incr Tcl] object system.'
arch=('i686' 'x86_64')
url='http://incrtcl.sourceforge.net/itk/'
license=('custom')
depends=(glibc)
makedepends=(cvs)
provides=(itk=$pkgver-$pkgrel)
conflicts=(itk)
_vcsroot="anonymous:@incrtcl.cvs.sourceforge.net:/cvsroot/incrtcl"
_vcsname="incrTcl"
#source=("$_vcsname::cvs+http://incrtcl.cvs.sourceforge.net/viewvc/incrtcl/")
options=(!emptydirs)
build(){
cd "$srcdir"
if [ -d "${_vcsname}/CVS" ]; then
msg2 "Starting CVS update ..."
cd "${_vcsname}"
cvs -z3 update -d
msg2 "... updating finished."
else
msg2 "Starting CVS checkout ..."
cvs -z3 -f -d:pserver:${_vcsroot} co "${_vcsname}"
msg2 "... checkout finished."
cd "${_vcsname}"
fi
if [ -e "${srcdir}/${_vcsname}-build" ]; then
rm -rf "${srcdir}/${_vcsname}-build"
fi
msg2 "CVS checkout done or server timeout"
./configure --prefix=/usr --mandir=/usr/share/man
make
}
package(){
cd "$srcdir"/$_vcsname
msg2 "Starting make install"
make DESTDIR="$pkgdir/" install
# Conflit with itcl-3.4
rm -rf "$pkgdir"/usr/lib/itcl3.4
rm -f "$pkgdir"/usr/lib/itclConfig.sh
# Conflit with tcl-8.6.0
rm -rf "$pkgdir"/usr/include
rm -rf "$pkgdir"/usr/share/man
install -Dm644 "$srcdir"/$_vcsname/itk/license.terms \
"$pkgdir"/usr/share/licenses/$pkgname/License
# cleaning
find "$pkgdir" -type d -name ".svn" -exec rm -rf '{}' +;
}
|