summaryrefslogtreecommitdiff
path: root/pcr/lg-downloader-git
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-03-20 00:46:49 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-03-20 00:51:10 +0100
commit220a347c89039c9f90e68243f4bb8039fb285fb3 (patch)
tree8b35aba9cee98f93d4e9208e2167135d1863d01e /pcr/lg-downloader-git
parent04d523074a9d50acee1a8b5b315fe97163fc04a9 (diff)
downloadabslibre-220a347c89039c9f90e68243f4bb8039fb285fb3.tar.gz
abslibre-220a347c89039c9f90e68243f4bb8039fb285fb3.tar.bz2
abslibre-220a347c89039c9f90e68243f4bb8039fb285fb3.zip
pcr: Import lg-downloader-git from AUR
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'pcr/lg-downloader-git')
-rw-r--r--pcr/lg-downloader-git/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/pcr/lg-downloader-git/PKGBUILD b/pcr/lg-downloader-git/PKGBUILD
new file mode 100644
index 000000000..7dd707c94
--- /dev/null
+++ b/pcr/lg-downloader-git/PKGBUILD
@@ -0,0 +1,41 @@
+# Copyright (C) 2020 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+pkgname=lg-downloader-git
+_pkgname=lg-downloader
+pkgver=0.1+r13.78a81fc
+pkgrel=2
+pkgdesc="Tool to flash LG devices like the LG Optimus black (P970) from their bootloader"
+arch=('armv7h' 'i686' 'x86_64')
+url='https://git.replicant.us/contrib/PaulK/lg-downloader/'
+license=('GPL3')
+depends=('libusb')
+makedepends=('git')
+_commit=('78a81fcd61ffaa638c3fe5eb91ba5911ad593c98')
+source=("git://git.replicant.us/PaulK/lg-downloader#commit=${_commit}")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ printf "0.1+r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "${srcdir}/${_pkgname}"
+ ./autogen.sh
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}"
+ ./configure --prefix=/usr --mandir=/usr/share/man
+ make
+}
+
+package(){
+ cd "${srcdir}/${_pkgname}"
+ make DESTDIR="${pkgdir}" install
+ install -D -m644 COPYING "${pkgdir}"/usr/share/licenses/${_pkgname}/LICENSE
+}