# Maintainer: Icaro Perseo pkgname=qgit pkgver=2.5 pkgrel=1rvm source=("http://repo.or.cz/w/qgit4/redivivus.git/snapshot/a581f22a6b1fc3fb024001e5f4ef0988572919b5.tar.gz" \ "qgit.png" \ "qgit.desktop") sourcetemplate="http://people.salixos.org/icaroperseo/14.1/d/$pkgname" docs=('README') url="http://repo.or.cz/w/qgit4/redivivus.git" slackdesc=\ ( #|-----handy-ruler---------------------------------------------------| "qgit (A Git GUI viewer built on Qt/C++)" "With qGit you will be able to browse revisions history, view patch" "content and changed files, graphically following different" "development branches." ) build() { # Acceding to the working directory. cd $startdir/src/redivivus # Building the binary file. qmake \ QMAKE_CFLAGS+="$SLKCFLAGS" \ QMAKE_CXXFLAGS+="$SLKCFLAGS" \ qgit.pro make || return 1 # Acceding to the src directory. cd $startdir/src # Copying binary file to the destination directory. mkdir -p $startdir/pkg/usr/bin cp redivivus/bin/$pkgname $startdir/pkg/usr/bin/ # Copying application icon file to the destination directory. mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps cp $pkgname.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/ # Copying application desktop file to the destination directory. mkdir -p $startdir/pkg/usr/share/applications cp $pkgname.desktop $startdir/pkg/usr/share/applications/ } doinst() { # Desktop database refresh. if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi # Mime database refresh. if [ -x /usr/bin/update-mime-database ]; then /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 fi }