This commit is contained in:
Mark Wagie 2025-03-05 09:57:24 -07:00
parent d6aec75357
commit 64a43cbe10
4 changed files with 22 additions and 20 deletions

View file

@ -1,10 +1,11 @@
pkgbase = pixelflasher
pkgdesc = Pixel phone flashing GUI utility with features.
pkgver = 7.9.3.3
pkgver = 7.10.0.0
pkgrel = 1
url = https://github.com/badabing2005/PixelFlasher
arch = any
license = GPL-3.0-or-later
makedepends = git
depends = hicolor-icon-theme
depends = python-beautifulsoup4
depends = python-bsdiff4
@ -26,11 +27,11 @@ pkgbase = pixelflasher
optdepends = android-tools: Use system platform tools
optdepends = scrcpy: Launch Screen Copy
options = !strip
source = PixelFlasher-7.9.3.3.tar.gz::https://github.com/badabing2005/PixelFlasher/archive/refs/tags/v7.9.3.3.tar.gz
source = PixelFlasher-7.10.0.0.tar.gz::https://github.com/badabing2005/PixelFlasher/archive/refs/tags/v7.10.0.0.tar.gz
source = git+https://android.googlesource.com/platform/system/update_engine.git
source = PixelFlasher.desktop
source = PixelFlasher.sh
sha256sums = 94a908b3d7a28dbcdd620c9a7c8cb20edc966f61c52b601685970ddd530aaa0e
sha256sums = 6e289a83d1c96ddb080f47c0c5479cda8371c1f7c170cf0163e617b3662c9910
sha256sums = SKIP
sha256sums = dff526833836b7123c99d2321f06975c34fe0abd21a02ef9dde4da3328a21129
sha256sums = 345d09c6aa123e6d30d8156b042f4372764cbd92932ffcf978fe77a512c4502d
pkgname = pixelflasher

1
.gitignore vendored
View file

@ -8,4 +8,3 @@
!.nvchecker.toml
!LICENSE
!PixelFlasher.desktop
!PixelFlasher.sh

View file

@ -1,6 +1,6 @@
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=pixelflasher
pkgver=7.9.3.3
pkgver=7.10.0.0
pkgrel=1
pkgdesc="Pixel phone flashing GUI utility with features."
arch=('any')
@ -26,17 +26,25 @@ depends=(
'python-wxpython'
'xdg-utils'
)
makedepends=('git')
optdepends=(
'android-tools: Use system platform tools'
'scrcpy: Launch Screen Copy'
)
options=('!strip')
source=("PixelFlasher-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz"
'PixelFlasher.desktop'
'PixelFlasher.sh')
sha256sums=('94a908b3d7a28dbcdd620c9a7c8cb20edc966f61c52b601685970ddd530aaa0e'
'dff526833836b7123c99d2321f06975c34fe0abd21a02ef9dde4da3328a21129'
'345d09c6aa123e6d30d8156b042f4372764cbd92932ffcf978fe77a512c4502d')
'git+https://android.googlesource.com/platform/system/update_engine.git'
'PixelFlasher.desktop')
sha256sums=('6e289a83d1c96ddb080f47c0c5479cda8371c1f7c170cf0163e617b3662c9910'
'SKIP'
'dff526833836b7123c99d2321f06975c34fe0abd21a02ef9dde4da3328a21129')
prepare() {
# Regegerate protos
protoc --proto_path=update_engine --python_out=. update_metadata.proto
cp -vf update_metadata_pb2.py "PixelFlasher-$pkgver/update_metadata_pb2.py"
}
package() {
cd "PixelFlasher-$pkgver"
@ -51,10 +59,8 @@ package() {
install -Dm644 images/pif/*.png -t "$pkgdir/opt/$pkgname/images/pif/"
chmod +x "$pkgdir/opt/$pkgname/PixelFlasher.py"
# install -d "$pkgdir/usr/bin"
# ln -s "/opt/$pkgname/PixelFlasher.py" "$pkgdir/usr/bin/PixelFlasher"
install -Dm755 "$srcdir/PixelFlasher.sh" "$pkgdir/usr/bin/PixelFlasher"
install -d "$pkgdir/usr/bin"
ln -s "/opt/$pkgname/PixelFlasher.py" "$pkgdir/usr/bin/PixelFlasher"
for i in 64 128 256; do
install -Dm644 "images/icon-${i}.png" \

View file

@ -1,4 +0,0 @@
#!/bin/bash
# Workaround 'TypeError: Descriptors cannot be created directly'
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python /opt/pixelflasher/PixelFlasher.py