Created
June 2, 2012 06:14
-
-
Save adityam/2856935 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment