diff options
author | SZanko | 2021-05-31 00:00:49 +0200 |
---|---|---|
committer | SZanko | 2021-05-31 00:00:49 +0200 |
commit | dfbce871db1ea4f3e8e9e8f1e9dc352e2bd0fc1c (patch) | |
tree | b6038e11e96d45c876e118d1a419de9c64879986 | |
download | aur-dfbce871db1ea4f3e8e9e8f1e9dc352e2bd0fc1c.tar.gz |
Init Commit
Signed-off-by: SZanko <szanko@protonmail.com>
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 35 |
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b209bad910b0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = samloader-git + pkgdesc = Download firmware for Samsung devices + pkgver = r33.15f0887 + pkgrel = 1 + url = https://github.com/nlscc/samloader + arch = any + license = GPL3 + depends = python + depends = python-setuptools + depends = python-clint + depends = python-pycryptodomex + depends = python-pip + conflicts = samloader + source = git+https://github.com/nlscc/samloader.git + sha256sums = SKIP + +pkgname = samloader-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..da8d41497691 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/src/* +/pkg/* +*.tar.* +samloader diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..719aeba235e8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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 +} |