diff options
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 52 |
3 files changed, 36 insertions, 42 deletions
@@ -1,27 +1,24 @@ pkgbase = betterbib - pkgdesc = Update BibTeX files with info from online resources - pkgver = 4.0.2 + pkgdesc = Better BibTeX data + pkgver = 4.2.0 pkgrel = 1 url = https://github.com/nschloe/betterbib arch = any - license = custom - depends = python>=3.8 + license = GPL3 depends = python-appdirs - depends = python-latexcodec - depends = python-pybtex>=0.19.0 + depends = python-pybtex depends = python-pyenchant - depends = python-requests + depends = python-pylatexenc depends = python-requests-cache depends = python-rich - depends = python-setuptools + depends = python-tomli depends = python-unidecode - depends = aspell-en - depends = hspell + depends = hunspell depends = libvoikko depends = nuspell - source = betterbib-4.0.2.tar.gz::https://github.com/nschloe/betterbib/archive/refs/tags/v4.0.2.tar.gz - source = abbrev.jabref.org-2021-09.tar.gz::https://github.com/JabRef/abbrv.jabref.org/archive/refs/tags/2021-09.tar.gz - sha256sums = c6e95fc26e90273280b269e9dbb093f1b80d2f5066d6dfc21d636a8022d6dafa - sha256sums = 77617e9d59da089d39235d1c69e390bb4d98780c42579ba5c368be3d3e3daaa3 + depends = hspell + depends = aspell-en + source = https://pypi.org/packages/source/b/betterbib/betterbib-4.2.0.tar.gz + sha512sums = 90f7d6865d384193ce82de07f26adc15cbcb4f40e97ab7e429727d36074c0156aab95dbfb8612d5628304113627f1278b095c7584645963ee51ac1eb80ab47b8 pkgname = betterbib diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..f59ec20aabf5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*
\ No newline at end of file @@ -1,38 +1,34 @@ # Maintainer: jxir <aur@jxir.de> -# Contributor: carlosal1015 - +# Maintainer: Carlos Aznarán <caznaranl@uni.pe> pkgname=betterbib -pkgver=4.0.2 -_abbrvver=2021-09 +pkgdesc="Better BibTeX data" +pkgver=4.2.0 pkgrel=1 -pkgdesc="Update BibTeX files with info from online resources" -arch=('any') -url="https://github.com/nschloe/betterbib" -license=('custom') -depends=('python>=3.8' 'python-appdirs' 'python-latexcodec' 'python-pybtex>=0.19.0' - 'python-pyenchant' 'python-requests' 'python-requests-cache' 'python-rich' - 'python-setuptools' 'python-unidecode' 'aspell-en' 'hspell' 'libvoikko' - 'nuspell') -source=("$pkgname-$pkgver.tar.gz::https://github.com/nschloe/betterbib/archive/refs/tags/v$pkgver.tar.gz" - "abbrev.jabref.org-$_abbrvver.tar.gz::https://github.com/JabRef/abbrv.jabref.org/archive/refs/tags/$_abbrvver.tar.gz") -sha256sums=('c6e95fc26e90273280b269e9dbb093f1b80d2f5066d6dfc21d636a8022d6dafa' - '77617e9d59da089d39235d1c69e390bb4d98780c42579ba5c368be3d3e3daaa3') +arch=(any) +url="https://github.com/nschloe/${pkgname}" +license=(GPL3) +depends=(python-appdirs python-pybtex python-pyenchant python-pylatexenc python-requests-cache python-rich python-tomli python-unidecode hunspell libvoikko nuspell hspell aspell-en) +source=(https://pypi.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz) +# _abbrvver=2021-09 +# abbrev.jabref.org-$_abbrvver.tar.gz::https://github.com/JabRef/abbrv.jabref.org/archive/refs/tags/$_abbrvver.tar.gz +sha512sums=('90f7d6865d384193ce82de07f26adc15cbcb4f40e97ab7e429727d36074c0156aab95dbfb8612d5628304113627f1278b095c7584645963ee51ac1eb80ab47b8') -build() { - cd "$srcdir/abbrv.jabref.org-$_abbrvver" - ./combine_journal_lists.py out.csv journals/* - python3 "$srcdir/$pkgname-$pkgver/src/betterbib/data/csv-to-json.py" out.csv journals.json +# prepare() { +# cd "abbrv.jabref.org-$_abbrvver" +# ./combine_journal_lists.py out.csv journals/* +# python3 "$srcdir/$pkgname-$pkgver/src/betterbib/data/csv-to-json.py" out.csv journals.json +# } - cd "$srcdir/$pkgname-$pkgver" +build() { + cd ${pkgname}-${pkgver} + export PYTHONHASHSEED=0 python -c "from setuptools import setup; setup();" build - } +# cd "$srcdir/abbrv.jabref.org-$_abbrvver" +# install -Dm644 journals.json "$pkgdir/usr/lib/python3.9/site-packages/betterbib/data/journals.json" package() { - cd "$srcdir/abbrv.jabref.org-$_abbrvver" - install -Dm644 journals.json "$pkgdir/usr/lib/python3.9/site-packages/betterbib/data/journals.json" - - cd "$srcdir/$pkgname-$pkgver" - python -c "from setuptools import setup; setup();" install --root="$pkgdir" --optimize=1 - install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd ${pkgname}-${pkgver} + PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -c "from setuptools import setup; setup();" install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build + install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}" } |