From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/sword/PKGBUILD | 26 ++++++++++++++++++++++++++ community/sword/curl_7.20.patch | 12 ++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 community/sword/PKGBUILD create mode 100644 community/sword/curl_7.20.patch (limited to 'community/sword') diff --git a/community/sword/PKGBUILD b/community/sword/PKGBUILD new file mode 100644 index 000000000..853cabb1c --- /dev/null +++ b/community/sword/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Stefan Husmann +# Contributor: TripleE + +pkgname=sword +pkgver=1.6.2 +pkgrel=2 +pkgdesc="SWORD libraries for Bible programs" +arch=('i686' 'x86_64') +url="http://www.crosswire.org/sword/index.jsp" +license=('GPL') +depends=('curl' 'icu' 'clucene') +source=(http://www.crosswire.org/ftpmirror/pub/${pkgname}/source/v1.6/${pkgname}-${pkgver}.tar.gz) +md5sums=('a7dc4456e20e915fec46d774b690e305') +backup=('etc/sword.conf') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + ./configure --prefix=/usr --sysconfdir=/etc --with-icu + make +} +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + make DESTDIR=${pkgdir} install_config +} + diff --git a/community/sword/curl_7.20.patch b/community/sword/curl_7.20.patch new file mode 100644 index 000000000..88763188d --- /dev/null +++ b/community/sword/curl_7.20.patch @@ -0,0 +1,12 @@ +--- src/mgr/curlftpt.cpp (revision 2505) ++++ src/mgr/curlftpt.cpp (revision 2506) +@@ -177,6 +177,9 @@ + res = curl_easy_perform(session); + SWLog::getSystemLog()->logDebug("***** Finished performing curl easy action. \n"); + ++ // it seems CURL tries to use this option data later for some reason, so we unset here ++ curl_easy_setopt(session, CURLOPT_PROGRESSDATA, (void*)NULL); ++ + if(CURLE_OK != res) { + retVal = -1; + } -- cgit v1.2.3-54-g00ecf