summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 719aeba235e836c15a3171b7e57123f792ff0a82 (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
# Maintainer: SZanko, szanko at protonmail dot com

_pkgname=samloader
pkgname=${_pkgname}-git
pkgver=r33.15f0887
pkgrel=1
pkgdesc="Download firmware for Samsung devices"
arch=('any')
url="https://github.com/nlscc/samloader"
license=('GPL3')
conflicts=('samloader')
depends=(
	'python'
	'python-setuptools'
	'python-clint'
	'python-pycryptodomex'
	'python-pip'
	)
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}"
	python setup.py build
}

package() {
    cd "$srcdir/$_pkgname"
    python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}