# Maintainer: Luis Henrique <lmello.009@gmail.com>

# Mandatory
pkgname=tkcvs
pkgver=8.2.2
pkgrel=1lm
arch=noarch
source=("http://www.twobarleycorns.net/tkcvs_8_2_2.tar.gz" "tkcvs.desktop" "tkcvs.png" "tkdiff.1")
# Optional
docs=("CHANGELOG FAQ COPYING INSTALL")
url="http://www.twobarleycorns.net/tkcvs.html"
 
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"tkcvs (Tcl/Tk Graphical Interface to CVS and Subversion)"
"TkCVS is a Tcl/Tk-based graphical interface to the CVS and"
"Subversion configuration management systems. It displays the status of"
"the files in the current working directory, and provides buttons and"
"menus to execute configuration-management commands on the selected"
"files. Limited RCS functionality is also present. TkDiff is bundled"
"in for browsing and merging your changes."
)

build() {
        cd $startdir/src/tkcvs_8_2_2
        ./doinstall.tcl -nox $startdir/pkg/usr
        
        # Install tkdiff man page:
        cp $startdir/src/tkdiff.1 $startdir/pkg/usr/man/man1
        gzip -9 $startdir/pkg/usr/man/man?/*.?
        
        # Install menu entry:
        mkdir -p $startdir/pkg/usr/share/applications
        mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps
        cp -a $startdir/src/tkcvs.desktop $startdir/pkg/usr/share/applications
        cp -a $startdir/src/tkcvs.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps
}