#Packager: Tim Beech pkgname=charm pkgver=1.9.1 pkgrel=1tjb #arch=noarch= source=(https://downloads.sourceforge.net/project/ljcharm/charm/charm-1.9.1/charm-1.9.1.tar.gz) sourcetemplate=http://people.salixos.org/mimosa/packages/$pkgname/$pkgver docs=("readme.charm" "changes.charm" "license" "charm.html") url="http://ljcharm.sourceforge.net/" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "charm (a console blogging client)" "charm is a full-featured blogging client for LiveJournal, Atom " "(Movable Type, Blogger), and MetaWeb (WordPress). It is" "console-based, all-text, and can be used entirely from the" "command line. It is written in Python." ) build() { cd $startdir/src/$pkgname-$pkgver #python setup.py build python setup.py install --root=$startdir/pkg #move docs and manpages to where they belong mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver mkdir -p $startdir/pkg/usr/man mv $startdir/pkg/usr/share/doc/* $startdir/pkg/usr/doc/$pkgname-$pkgver chmod -R go-w $startdir/pkg/usr/doc/$pkgname-$pkgver/ cp -a $startdir/pkg/usr/share/man/* $startdir/pkg/usr/man chmod -R go-w $startdir/pkg/usr/man/ #remove unwanted stuff rm -rf $startdir/pkg/usr/share }