blob: 91df4cf33632314053d9b910c12c50d5d3b3f502 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: Frigyes Erdosi-Szucs <eszfrigyes06 at gmail dot com>
pkgname=universal-android-debloater-git
pkgver=1.0.3.r100.g0dbd9f9
pkgrel=1
epoch=
pkgdesc="A cross-platform GUI debloater for android devices"
arch=('x86_64')
url="https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation.git"
license=('GPL-3.0-or-later')
groups=()
depends=('android-tools' 'gcc-libs')
makedepends=('git' 'cargo' 'clang' 'cmake' 'mold')
checkdepends=()
optdepends=()
provides=(universal-android-debloater-git)
conflicts=('universal-android-debloater-opengl'
'universal-android-debloater-opengl-bin'
'universal-android-debloater'
'universal-android-debloater-bin')
replaces=()
backup=()
changelog=
source=("git+$url#branch=main")
noextract=()
md5sums=('SKIP')
sha256sums=('SKIP')
validpgpkeys=()
pkgver() {
cd $srcdir/universal-android-debloater-next-generation
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd $srcdir/universal-android-debloater-next-generation
export CARGO_HOME="$srcdir/cargo-home"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd $srcdir/universal-android-debloater-next-generation
export CARGO_HOME="$srcdir/cargo-home"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
CFLAGS+=" -ffat-lto-objects"
cargo build --frozen --release --no-default-features --features wgpu,no-self-update
}
package() {
cd $srcdir/universal-android-debloater-next-generation
install -Dm755 target/release/uad-ng -t "$pkgdir/usr/bin/"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|