#Maintainer: Dimitris Tzemos pkgname=gramps pkgver=4.0.4 pkgrel=1dj source=("http://downloads.sourceforge.net/project/gramps/Stable/$pkgver/gramps-$pkgver.tar.gz") sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname docs=("AUTHORS" "COPYING" "FAQ" "INSTALL" "NEWS" "TODO") url=http://www.gramps-project.org slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "GRAMPS (genealogy program)" "Genealogical Research and Analysis Management Programming System" "GRAMPS is a genealogy program for Linux and other UNIX-like systems." "GRAMPS stands for Genealogical Research and Analysis Management" "Programming System. GRAMPS helps you track your family tree. It" "allows you to store, edit, and research genealogical data." "" "Homepage: http://www.gramps-project.org/" ) build() { cd $SRC/$pkgname-$pkgver || return 1 python setup.py build || return 1 python setup.py install --prefix=/usr --root=$PKG || return 1 mkdir -p $PKG/usr/share/icons/hicolor/48x48/apps || return 1 cp $PKG/usr/share/icons/gramps.png $PKG/usr/share/icons/hicolor/48x48/apps || return 1 sed -i "s/Categories=.*/Categories=GTK;Office;/" $PKG/usr/share/applications/gramps.desktop || return 1 sed -i "s/.png//" $PKG/usr/share/applications/gramps.desktop || return 1 echo -n '/usr/share' >$PKG/usr/lib${LIBDIRSUFFIX}/python2.7/site-packages/gramps/gen/utils/resource-path || return 1 chown -R root:root $PKG } # Doinst doinst() { if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi if [ -x /usr/bin/update-mime-database ]; then /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 fi }