diff options
author | Balazs Vinarz | 2019-02-22 17:32:33 +0100 |
---|---|---|
committer | Balazs Vinarz | 2019-02-22 17:32:33 +0100 |
commit | 9661c6355d90360ca941bcd3fd0faf48213825b6 (patch) | |
tree | 8a235f45a0ddc305107b5480f534cab231371861 | |
download | aur-9661c6355d90360ca941bcd3fd0faf48213825b6.tar.gz |
1st version
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6aacd3a05c2f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = lglaf + pkgdesc = LGLAF.py is a utility for communication with LG devices in Download Mode. This allows you to execute arbitrary shell commands on a LG phone as root. + pkgver = 20180317 + pkgrel = 1 + url = https://github.com/Lekensteyn/lglaf + arch = i686 + arch = x86_64 + license = MIT + depends = python2 + depends = python2-pyusb + source = https://github.com/Lekensteyn/lglaf/archive/master.zip + md5sums = c90866a08a16bf852a1e30b0ae936291 + +pkgname = lglaf + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e3caaa912d7e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: vinibali <vinibali1 at gmail dot com> + +pkgname=lglaf +pkgver=20180317 +pkgrel=1 +pkgdesc="LGLAF.py is a utility for communication with LG devices in Download Mode. This allows you to execute arbitrary shell commands on a LG phone as root." +arch=(i686 x86_64) +url="https://github.com/Lekensteyn/lglaf" +license=('MIT') +depends=('python2' 'python2-pyusb') +source=(https://github.com/Lekensteyn/lglaf/archive/master.zip) +md5sums=(c90866a08a16bf852a1e30b0ae936291) + +build() { + echo "No build needed" +} + +package() { + + install -Dm755 "${srcdir}"/lglaf-master/dump-file.py "${pkgdir}"/opt/lglaf/dump-file.py + install -Dm755 "${srcdir}"/lglaf-master/extract-partitions.py "${pkgdir}"/opt/lglaf/extract-partitions.py + install -Dm755 "${srcdir}"/lglaf-master/gpt.py "${pkgdir}"/opt/lglaf/gpt.py + install -Dm755 "${srcdir}"/lglaf-master/laf_crypto.py "${pkgdir}"/opt/lglaf/laf_crypto.py + install -Dm755 "${srcdir}"/lglaf-master/lglaf.py "${pkgdir}"/opt/lglaf/lglaf.py + install -Dm755 "${srcdir}"/lglaf-master/partitions.py "${pkgdir}"/opt/lglaf/partitions.py + install -Dm755 "${srcdir}"/lglaf-master/README.md "${pkgdir}"/opt/lglaf/README.md + mkdir -p "${pkgdir}"/etc/udev/rules.d/ + install -Dm644 "${srcdir}"/lglaf-master/rules.d/42-usb-lglaf.rules "${pkgdir}"/etc/udev/rules.d/ + mkdir -p "${pkgdir}"/usr/bin/ + echo -e '#!/bin/bash\npython2.7 /opt/lglaf/lglaf.py' > "${pkgdir}"/usr/bin/lglaf + chmod +x "${pkgdir}"/usr/bin/lglaf +} |