aboutsummaryrefslogtreecommitdiffstats
path: root/community/abook
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-01-13 15:20:54 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2017-01-13 15:23:03 +0100
commit32e5d400524f2ca57689f6f79bd6af735c2ca440 (patch)
treef3a23076389251758acd6f55a36f0c4e88ea87b3 /community/abook
parentd3570043ddf71bc76596865a45651011ec75a7b8 (diff)
downloadaports-32e5d400524f2ca57689f6f79bd6af735c2ca440.tar.bz2
aports-32e5d400524f2ca57689f6f79bd6af735c2ca440.tar.xz
community/abook: move from testing
Diffstat (limited to 'community/abook')
-rw-r--r--community/abook/APKBUILD49
-rw-r--r--community/abook/gcc6.patch24
2 files changed, 73 insertions, 0 deletions
diff --git a/community/abook/APKBUILD b/community/abook/APKBUILD
new file mode 100644
index 0000000000..8b04a787a6
--- /dev/null
+++ b/community/abook/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=abook
+pkgver=0.6.1
+_ver=${pkgver/_pre/pre}
+pkgrel=2
+pkgdesc="Text-based addressbook designed for use with Mutt"
+url="http://abook.sourceforge.net"
+license="GPL2"
+arch="all"
+makedepends="ncurses-dev readline-dev automake autoconf gettext-dev"
+subpackages="$pkgname-doc $pkgname-lang"
+source="http://$pkgname.sourceforge.net/devel/$pkgname-${_ver}.tar.gz
+ gcc6.patch"
+
+builddir="$srcdir"/$pkgname-$_ver
+prepare() {
+ default_prepare || return 1
+ cd "$builddir"
+
+ aclocal && automake --add-missing && autoconf -v
+ sed 's/0.18/0.19/g' -i po/Makefile.in.in
+}
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/charset.alias
+}
+
+md5sums="4bffd4c47ac41b688abd58f65bfe0bfb abook-0.6.1.tar.gz
+43074804f0b76e388d73242a1b8d43d1 gcc6.patch"
+sha256sums="f0a90df8694fb34685ecdd45d97db28b88046c15c95e7b0700596028bd8bc0f9 abook-0.6.1.tar.gz
+1eb89bc9ec6d4baed8a44d1ac9a8fb57742423e0699f26f354e810dfc63052cb gcc6.patch"
+sha512sums="993895ef2fd6d98d50db610699f8f0a28112778065ac56484373eb814afd8ab7371201fc21506c090514f4b29570ec229dc62c606ab068301152567e2c47fe66 abook-0.6.1.tar.gz
+21ab6475512ea9baae1a6509749628d6b610e96e77c64139d09697d272d66556875058e91c9b948c4ebaf65795a97d8532bae25e5d7e71cc4a20af49897cd867 gcc6.patch"
diff --git a/community/abook/gcc6.patch b/community/abook/gcc6.patch
new file mode 100644
index 0000000000..e7422187e3
--- /dev/null
+++ b/community/abook/gcc6.patch
@@ -0,0 +1,24 @@
+diff -up abook-git-6e550af8a907a680dc845c22a7d6c36d89e900c1/database.c.gcc5 abook-git-6e550af8a907a680dc845c22a7d6c36d89e900c1/database.c
+--- abook-git-6e550af8a907a680dc845c22a7d6c36d89e900c1/database.c.gcc5 2014-11-28 16:29:52.000000000 +0100
++++ abook-git-6e550af8a907a680dc845c22a7d6c36d89e900c1/database.c 2015-02-11 16:02:15.837789303 +0100
+@@ -859,7 +859,7 @@ item_merge(list_item dest, list_item src
+ */
+
+ /* quick lookup by "standard" field number */
+-inline int
++extern inline int
+ field_id(int i)
+ {
+ assert((i >= 0) && (i < ITEM_FIELDS));
+diff -up abook-git-6e550af8a907a680dc845c22a7d6c36d89e900c1/database.h.gcc5 abook-git-6e550af8a907a680dc845c22a7d6c36d89e900c1/database.h
+--- abook-git-6e550af8a907a680dc845c22a7d6c36d89e900c1/database.h.gcc5 2014-11-28 16:29:52.000000000 +0100
++++ abook-git-6e550af8a907a680dc845c22a7d6c36d89e900c1/database.h 2015-02-11 16:02:23.465818915 +0100
+@@ -61,7 +61,7 @@ struct db_enumerator {
+ /*
+ * Field operations
+ */
+-inline int field_id(int i);
++extern inline 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)