blob: e4ac9bc25c2182bcdaad0ccfb47b131e1da6f966 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: neolouker <neolouker@gmail.com>
# Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz>
pkgname=pbincli-git
_name="PBinCLI"
pkgver=0.3.5.r14.gac0a145
pkgrel=1
pkgdesc='A command line client for PrivateBin'
arch=('any')
url="https://github.com/r4sas/${_name}"
license=('MIT')
depends=('python'
'python-base58'
'python-pycryptodome'
'python-requests'
'python-sjcl'
'python-argcomplete'
'python-pysocks')
makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools')
_pkgsrc="${_name}-${pkgver}"
provides=("pbincli=${pkgver%%.r*}")
conflicts=(pbincli)
source=("${_pkgsrc}.tar.gz::git+${url}.git")
sha256sums=('SKIP')
prepare() {
git -C "${srcdir}/${_pkgsrc}.tar.gz" clean -dfx
}
pkgver() {
cd "$srcdir/${_pkgsrc}.tar.gz"
( set -o pipefail
git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
)
}
build() {
cd "$srcdir/${_pkgsrc}.tar.gz"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/${_pkgsrc}.tar.gz"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "README.rst" "${pkgdir}/usr/share/doc/${pkgname}/README.rst"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|