diff --git a/srcpkgs/abook/patches/inline.patch b/srcpkgs/abook/patches/inline.patch new file mode 100644 index 00000000000..d437fde6ccb --- /dev/null +++ b/srcpkgs/abook/patches/inline.patch @@ -0,0 +1,12 @@ +diff -ur database.h database.h +--- database.h 2015-10-04 10:38:25.000000000 +0800 ++++ database.h 2018-02-15 21:11:46.311673251 +0800 +@@ -61,7 +61,7 @@ + /* + * Field operations + */ +-inline int field_id(int i); ++int field_id(int i); + abook_field *find_standard_field(char *key, int do_declare); + abook_field *real_find_field(char *key, abook_field_list *list, int *nb); + #define find_field(key, list) real_find_field(key, list, NULL) diff --git a/srcpkgs/abook/template b/srcpkgs/abook/template index 3d1721bb61b..d8b20e40c6e 100644 --- a/srcpkgs/abook/template +++ b/srcpkgs/abook/template @@ -1,12 +1,21 @@ # Template file for 'abook' pkgname=abook -version=0.5.6 -revision=4 +version=0.6.1 +revision=1 build_style=gnu-configure +hostmakedepends="autoconf automake gettext-devel" makedepends="ncurses-devel readline-devel" maintainer="Philipp Hirsch " license="GPL-2" homepage="http://abook.sourceforge.net/" short_desc="Text-based addressbook designed to use with mutt mail client" -distfiles="${SOURCEFORGE_SITE}/abook/${pkgname}-${version}.tar.gz" -checksum=0646f6311a94ad3341812a4de12a5a940a7a44d5cb6e9da5b0930aae9f44756e +distfiles="http://abook.sourceforge.net/devel/${pkgname}-${version}.tar.gz" +checksum=f0a90df8694fb34685ecdd45d97db28b88046c15c95e7b0700596028bd8bc0f9 + +post_extract() { + autoreconf --install +} + +post_install() { + for f in BUGS ChangeLog FAQ README TODO sample.abookrc; do vdoc $f; done +}