public
Created

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# Contributor: rpj8 (Factory) <semidigerati@gmail.com>
pkgname=charm
pkgver=1.9.1
pkgrel=4
pkgdesc="Charm is a full-featured, console-based, cross-platfom blogging client for LiveJournal, Atom (Movable Type, Blogger), and MetaWeb (WordPress)."
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/ljcharm/"
license=('GPL')
depends=('python2')
optdepends=('python-feedparser: atom API posting')
#source=(http://superb-east.dl.sourceforge.net/sourceforge/ljcharm/$pkgname-$pkgver.tar.gz)
source=(http://downloads.sourceforge.net/project/ljcharm/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz
ljcharm.patch)
md5sums=('eb6c5827b1c1e18cf3fba84b7dc52743'
'5c28de2096c3eab032cb69fa0c931ee6')
 
build() {
patch -p0 < ljcharm.patch
cd "$srcdir/$pkgname-$pkgver"
sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' charm
python2 setup.py install --root="$pkgdir" --prefix=/usr || return 1
}
ljcharm.patch
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
diff -rupN charm-1.9.1/ljcharm.py charm-1.9.1.patched/ljcharm.py
--- charm-1.9.1/ljcharm.py 2009-01-11 16:21:15.000000000 -0500
+++ charm-1.9.1.patched/ljcharm.py 2012-06-02 02:51:26.125782584 -0400
@@ -44,14 +44,16 @@ import calendar
try:
import feedparser
- import httplib
- import base64
- import datetime
- import sha
atom_ok = 1
except:
atom_ok = 0
+import httplib
+import base64
+import datetime
+import sha
+
+
try:
import xmms.control
except:

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.