blob: 071d2c8fb47e0216fef9f5f09669999672da41e1 (
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
|
# Maintainer: David Torralba Goitia <david.torralba.goitia@gmail.com>
_name=direnv-backup
pkgname="${_name}-git"
pkgver=0.1.1
pkgrel=1
pkgdesc="Tool to backup/restore direnv files with optional encryption."
arch=("any")
url="https://github.com/dtgoitia/${_name}"
source=("${_name}-${pkgver}::git+${url}.git?tag=${pkgver}")
sha256sums=('SKIP')
provides=($_name)
conflicts=($_name "${_name}-git" "${_name}-bin")
license=("GLP3")
depends=("python")
optdepends=("gnupg: backup encryption/decryption support")
makedepends=("git" "python-build" "python-installer" "python-wheel")
build () {
cd "${srcdir}/${_name}-${pkgver}"
python -m build --wheel --outdir $srcdir
}
package() {
wheel_file="$(find . -type f -name '*.whl')"
if [[ ! -f "${wheel_file}" ]]; then
echo "Could not find the wheel package" 1>&2
exit 1
fi
python -m installer --destdir="$pkgdir" "${wheel_file}"
}
|