diff options
author | Daniel Moch | 2018-09-03 12:04:10 -0400 |
---|---|---|
committer | Daniel Moch | 2018-09-03 12:04:10 -0400 |
commit | 076370f4a3cce63ee37e36a4c12aee264554ae0b (patch) | |
tree | abbb47a0ab61f56708798ab05673193774f7e85c | |
parent | 019e3dcdd4793db7f8960c02433d9bbbbdaaa352 (diff) | |
download | aur-076370f4a3cce63ee37e36a4c12aee264554ae0b.tar.gz |
upgpkg: nncli-git v0.2.0.r0.g4a23f7b-1
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 18 insertions, 13 deletions
@@ -1,15 +1,19 @@ pkgbase = nncli-git pkgdesc = NextCloud Notes Command Line Interface - pkgver = v0.1.1.r17.gef9ace7 + pkgver = v0.2.0.r0.g4a23f7b pkgrel = 1 url = https://github.com/djmoch/nncli arch = any license = MIT - makedepends = python-setuptools + makedepends = flit makedepends = git - makedepends = python-setuptools-scm + makedepends = python-pip + makedepends = sed + makedepends = grep + depends = python depends = python-urwid depends = python-requests + depends = python-appdirs provides = nncli conflicts = nncli source = git+https://github.com/djmoch/nncli.git @@ -1,7 +1,7 @@ # Maintainer: Daniel Moch <daniel@danielmoch.com> _name=nncli pkgname=nncli-git -pkgver=v0.1.1.r17.gef9ace7 +pkgver=v0.2.0.r0.g4a23f7b pkgrel=1 pkgdesc="NextCloud Notes Command Line Interface" arch=('any') @@ -9,10 +9,8 @@ url="https://github.com/djmoch/${_name}" provides=('nncli') conflicts=('nncli') license=('MIT') -depends=('python-urwid' 'python-requests') -makedepends=('python-setuptools' - 'git' - 'python-setuptools-scm') +depends=('python' 'python-urwid' 'python-requests' 'python-appdirs') +makedepends=('flit' 'git' 'python-pip' 'sed' 'grep') source=("git+${url}.git") sha256sums=('SKIP') @@ -22,15 +20,18 @@ pkgver() git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } -build() { +build() +{ cd "${srcdir}/${_name}" - python setup.py build + flit build } -package() { +package() +{ cd "${srcdir}/${_name}" - python setup.py install --root="${pkgdir}" --optimize=1 + _ver=$(echo ${pkgver} | grep -Eo '[0-9]+\.[0-9]+\.[0-9]') install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + pip install -I --no-warn-script-location --isolated --no-deps --compile --root="${pkgdir}" dist/${_name}-${_ver}-py3-none-any.whl } -# vim: ft=PKGBUILD ts=2 sw=2 et +# vim: ft=PKGBUILD sts=2 sw=2 et |