# vim: set syn=sh: # Packager: Phill Watkins pkgname=wammu pkgver=0.35 pkgrel=1pw #arch=noarch source=(http://sourceforge.net/projects/gammu/files/wammu/$pkgver/wammu-$pkgver.tar.bz2) sourcetemplate=http://people.salixos.org/pwatk/packages/extra/$pkgname docs=("AUTHORS" "ChangeLog" "COPYING" "FAQ" "INSTALL" "PKG-INFO" "README") url=http://wammu.eu/wammu/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "Wammu (Mobile phone manager)" "Wammu works with any phone that Gammu supports, including many models" "from Nokia, Siemens, and Alcatel. It has complete support (read, edit," "elete, copy) for contacts, todo, and calendar. It can read, save, and" "send SMS. It includes an SMS composer for multi-part SMS messages, and" "it can display SMS messages that include pictures. Currently, only" "text and predefined bitmaps or sounds can be edited in the SMS" "composer. It can export messages to an IMAP4 server (or other email" "storage)." ) build() { set -e cd $startdir/src/$pkgname-$pkgver # fix man dir sed "/man1/s|'share',||g" -i setup.py python setup.py install --root=$startdir/pkg # fix icons install -Dm 0644 icon/wammu.svg $startdir/pkg/usr/share/icons/hicolor/scalable/apps/wammu.svg for icon in 16 22 24 32 48 ;do install -d $startdir/pkg/usr/share/icons/hicolor/${icon}x${icon}/apps convert -resize ${icon}x${icon} -background none icon/wammu.svg \ $startdir/pkg/usr/share/icons/hicolor/${icon}x${icon}/apps/wammu.png done rm -f $startdir/pkg/usr/share/pixmaps/wammu.{ico,svg} set +e }