diff options
author | root <root@rshg054.dnsready.net> | 2013-09-30 03:05:25 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-09-30 03:05:25 -0700 |
commit | a1ba981700ea6943bedc5d7bb769b1f893088c7f (patch) | |
tree | deb2c7698ce6657abf503fedca9ad6d519a56b8b /extra/abook | |
parent | 5a54e0a093cd01d4787eaf200ba14cfda3bc4b7a (diff) |
Mon Sep 30 02:50:34 PDT 2013
Diffstat (limited to 'extra/abook')
-rw-r--r-- | extra/abook/PKGBUILD | 15 | ||||
-rw-r--r-- | extra/abook/vcard.patch | 26 |
2 files changed, 37 insertions, 4 deletions
diff --git a/extra/abook/PKGBUILD b/extra/abook/PKGBUILD index c53e9ed18..c6606c6f4 100644 --- a/extra/abook/PKGBUILD +++ b/extra/abook/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 191361 2013-07-24 01:43:47Z bisson $ +# $Id: PKGBUILD 195248 2013-09-29 04:45:52Z bisson $ # Maintainer: Gaetan Bisson <bisson@archlinux.org> # Contributor: Daniel J Griffiths <ghost1227@archlinux.us> # Contributor: Thayer Williams <thayer@archlinux.org> # Contributor: damir <damir@archlinux.org> pkgname=abook -pkgver=0.6.0pre2.20130724 +pkgver=0.6.0pre2.20130928 pkgrel=1 pkgdesc='Text-based addressbook designed for use with Mutt' url='http://abook.sourceforge.net/' @@ -13,8 +13,15 @@ arch=('i686' 'x86_64') license=('GPL2') makedepends=('git') depends=('readline') -source=("abook::git://abook.git.sourceforge.net/gitroot/abook/abook#commit=2e3d4f7341e154bf09907aabcdfe73345cc72e68") -sha1sums=('SKIP') +source=("abook::git://abook.git.sourceforge.net/gitroot/abook/abook#commit=2e3d4f7341e154bf09907aabcdfe73345cc72e68" + 'vcard.patch') +sha1sums=('SKIP' + 'ac71e84812c5d57cb8ddaf5b03b7c25cbdf4c3db') + +prepare() { + cd "${srcdir}/${pkgname}" + patch -p1 -i ../vcard.patch +} build() { cd "${srcdir}/${pkgname}" diff --git a/extra/abook/vcard.patch b/extra/abook/vcard.patch new file mode 100644 index 000000000..55630c1e5 --- /dev/null +++ b/extra/abook/vcard.patch @@ -0,0 +1,26 @@ +diff -Naur old/filter.c new/filter.c +--- old/filter.c 2013-08-22 20:49:06.229337260 -1000 ++++ new/filter.c 2013-08-22 20:49:13.552700987 -1000 +@@ -1673,7 +1673,7 @@ + // vCard(the country name) + item_fput(item, COUNTRY, xstrdup(strsep(&value, ";"))); + +- if(*value) xfree(value); ++ if(value) xfree(value); + } + + static void +@@ -2052,6 +2052,13 @@ + + free(name); + ++ if(db_fget(item, NICK)) ++ fprintf(out, "NICKNAME:%s\r\n", ++ safe_str(db_fget(item, NICK))); ++ if(db_fget(item, ANNIVERSARY)) ++ fprintf(out, "BIRTHDAY:%s\r\n", ++ safe_str(db_fget(item, ANNIVERSARY))); ++ + // see rfc6350 section 6.3.1 + if(db_fget(item, ADDRESS)) { + fprintf(out, "ADR:;%s;%s;%s;%s;%s;%s\r\n", |