diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 50 |
1 files changed, 26 insertions, 24 deletions
@@ -1,42 +1,44 @@ # Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org> +# Maintainer: Daniel M. Capella <polyzen@archlinux.org> # Contributor: Kazuo Teramoto <kaz.rag at gmail.com> + pkgname=afew-git -pkgver=1.0.0.r21.g6f4244e -pkgrel=2 +pkgver=1.3.0.r57.g3bb53db +pkgrel=1 epoch=1 -pkgdesc="afew is an initial tagging script for notmuch mail" +pkgdesc='Initial tagging script for notmuch mail' arch=(any) -url="https://github.com/teythoon/afew" +url=https://github.com/afewmail/afew license=('custom:BSD') -depends=('python' 'notmuch' 'dbacl' 'python-chardet' 'python-setuptools' 'python-dkim') -makedepends=('git' 'python-sphinx') -source=('LICENSE' 'git://github.com/teythoon/afew.git') -md5sums=('295b245540aa61538f9a3556c4be846c' - 'SKIP') +depends=('notmuch' 'python-chardet' 'python-dkim' 'python-setuptools') +makedepends=('git' 'python-setuptools-scm' 'python-sphinx') +provides=('afew') +conflicts=('afew') +source=("git+$url.git") +md5sums=('SKIP') pkgver() { - cd "$srcdir/afew" - - git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' + cd afew + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { - cd "$srcdir/afew" - - python setup.py build + cd afew + python setup.py build egg_info + export SETUPTOOLS_SCM_PRETEND_VERSION=1 + python setup.py build_sphinx -b man --version $pkgver +} - make -C docs man +check() { + cd afew + python -m unittest discover afew/tests } package() { - cd "$srcdir/afew" - - python setup.py install --root="$pkgdir" --optimize=1 - - install -D -m 644 docs/build/man/afew.1 "$pkgdir/usr/share/man/man1/afew.1" - - install -D -m644 "$srcdir/LICENSE" \ - "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd afew + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 -t "$pkgdir"/usr/share/man/man1 build/sphinx/man/afew.1 + install -Dm644 -t "$pkgdir"/usr/share/licenses/afew LICENSE } # vim:set ts=2 sw=2 et: |