diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD index af35362..3989225 100644 --- a/trunk/PKGBUILD +++ b/trunk/PKGBUILD @@ -71,12 +71,18 @@ optdepends=('poppler: required for converting pdf to html' conflicts=(calibre-common calibre-python3) replaces=("${conflicts[@]}") +_dictionaries_commit="40580c5dbb5b06fbf402b5864e736527b05cd2f5" _archive="$pkgname-$pkgver" source=("https://download.calibre-ebook.com/$pkgver/$_archive.tar.xz" - "$url/signatures/$_archive.tar.xz.sig") + "https://download.calibre-ebook.com/$pkgver/$_archive-x86_64.txz" + "$url/signatures/$_archive.tar.xz.sig" + dictionaries-${_dictionaries_commit}.tar.gz::https://github.com/LibreOffice/dictionaries/archive/${_dictionaries_commit}.tar.gz) sha256sums=('6c66f245554d35b58aa84b6cf3e30f1e3506cd50427f1454a11017f1ae931a2b' - 'SKIP') + 'fbcfed744239e832ff4fbdabbbbd16354a33e344e242a7e5aa1bde4ca87f4e27' + 'SKIP' + '0c3fa82e802b795aa1040e142e6a37f79ebea7f7cff030be86c747b1a08b2a13') validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C') # Kovid Goyal (New longer key) +noextract=("$_archive-x86_64.txz") prepare(){ cd "$_archive" @@ -90,6 +96,8 @@ prepare(){ # Remove unneeded files rm -f resources/$pkgname-portable.* + + bsdtar -xf ../"$_archive-x86_64.txz" resources/user-agent-data.json } build() { @@ -102,7 +110,7 @@ build() { python setup.py iso639 python setup.py iso3166 python setup.py translations - python setup.py resources + python setup.py resources --path-to-hyphenation "${srcdir}"/dictionaries-${_dictionaries_commit} } check() {