diff options
Diffstat (limited to 'community/sword')
-rw-r--r-- | community/sword/PKGBUILD | 26 | ||||
-rw-r--r-- | community/sword/curl_7.20.patch | 12 |
2 files changed, 38 insertions, 0 deletions
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 <stefan-husmann@t-online.de> +# Contributor: TripleE <eric1548@yahoo.com> + +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; + } |