blob: cd0bd78e3daa54b0d8f44a86394fb56c7878ddce (
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
|
# Maintainer: Jomosoto <jomosoto dot proton dot me>
pkgname=yaffshiv-git
_pkgname=yaffshiv
pkgver=r45.f6f0ef7
pkgrel=1
pkgdesc='A simple YAFFS file system parser and extractor'
arch=('any')
url='https://github.com/devttys0/yaffshiv'
license=('MIT')
depends=(python)
makedepends=(python-setuptools)
source=("git+$url")
sha256sums=('SKIP')
build() {
cd "$_pkgname"
python -m build --wheel --no-isolation
}
package() {
cd "$_pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
}
pkgver() {
cd $_pkgname
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
|