blob: 96915c96f3a9066c651ab6a91a5a3242f0c962ea (
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
|
# Maintainer: RunasSudo <archlinux@yingtongli.me>
pkgname=python-wa-crypt-tools-git
_pkgname="${pkgname%-git}"
_pkg="${_pkgname#python-}"
pkgver=r389.0c92577
pkgrel=1
pkgdesc='WhatsApp Crypt Tools'
arch=('any')
url='https://github.com/ElDavoo/wa-crypt-tools'
license=('GPL')
depends=('python-javaobj-py3' 'python-pycryptodomex' 'python-protobuf')
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$_pkg::git+$url")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkg"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_pkg"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/$_pkg"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|