summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPiotr Rogoża2015-06-14 15:55:54 +0200
committerPiotr Rogoża2015-06-14 15:55:54 +0200
commit95ce26c82a68524f187b30c89b738c9a726be5a3 (patch)
tree95349e0b6f4a009e4741b6cad2a1af92b22d9b9c /PKGBUILD
downloadaur-itk-cvs.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD62
1 files changed, 62 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..9dc901273840
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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 '{}' +;
+}
+