blob: 2fcfb5aa69e6915ddfdd52833974f9dac8515c88 (
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
|
# Maintainer: SZanko, szanko at protonmail dot com
_pkgname=samloader
pkgname=${_pkgname}-git
pkgver=r46.b20e1b1
pkgrel=2
pkgdesc="Download firmware for Samsung devices"
arch=('any')
url="https://github.com/martinetd/samloader"
license=('GPL3')
conflicts=('samloader')
depends=(
'python'
'python-tqdm'
'python-pycryptodomex'
)
makedepends=(
'git'
'python-build'
'python-installer'
)
source=(git+"${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${_pkgname}"
sed -E -i "s/cloud-neofussvr.sslcs.cdngc.net/cloud-neofussvr.samsungmobile.com/g" samloader/fusclient.py
python3 -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "$srcdir/$_pkgname"
python3 -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|