Files

54 lines
2.2 KiB
Tcl
Raw Permalink Normal View History

2021-06-25 12:52:46 +08:00
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup java 1.0
PortGroup github 1.0
2026-05-01 15:26:31 +10:00
github.setup iBotPeaches Apktool 3.0.2 v
2025-03-11 18:05:09 +11:00
github.tarball_from archive
2026-02-26 21:24:43 +11:00
name [string tolower ${github.project}]
2021-06-25 12:52:46 +08:00
categories java devel
2024-01-08 11:25:00 -05:00
supported_archs x86_64 arm64
2021-06-25 12:52:46 +08:00
license Apache-2
maintainers {i0ntempest @i0ntempest} openmaintainer
description A tool for reverse engineering 3rd party, closed, binary Android apps
long_description Apktool is a tool for reverse engineering 3rd party, closed, binary Android apps.\
It can decode resources to nearly original form and rebuild them after making\
some modifications. It also makes working with an app easier because of the\
project like file structure and automation of some repetitive tasks like\
building apk, etc.
2025-08-22 16:58:23 +10:00
homepage https://apktool.org
2021-06-25 12:52:46 +08:00
2026-05-01 15:26:31 +10:00
checksums rmd160 3c9d72eee48d75ddadc056bbc8067e61395e6b24 \
sha256 058b9f8d2813484fdcec9fb556669861e23d1cfe2ed4dbaf78e7b877c1fc28d2 \
size 26765670
2021-12-17 09:01:38 +01:00
2021-06-25 12:52:46 +08:00
java.version 1.8+
java.fallback openjdk11
use_configure no
universal_variant no
2025-09-18 15:22:10 +10:00
depends_build-append port:gradle8
2021-06-25 12:52:46 +08:00
build.env-append GRADLE_USER_HOME=${worksrcpath}
build.cmd ${prefix}/bin/gradle
build.args --no-daemon --console=plain --stacktrace -p ${worksrcpath}
build.target shadowJar
post-patch {
2024-01-08 11:25:00 -05:00
reinplace "s|!in gradle.startParameter.taskNames|in gradle.startParameter.taskNames|g" ${worksrcpath}/build.gradle.kts
2021-06-25 12:52:46 +08:00
}
destroot {
2024-09-20 00:49:39 -04:00
copy ${worksrcpath}/brut.apktool/apktool-cli/build/libs/apktool-cli.jar ${destroot}${prefix}/libexec/
2021-06-25 12:52:46 +08:00
set script [open ${destroot}${prefix}/bin/apktool w]
puts $script "#!/bin/sh"
2024-09-20 00:49:39 -04:00
puts $script "\$(/usr/libexec/java_home)/bin/java -jar ${prefix}/libexec/apktool-cli.jar \"$@\""
2021-06-25 12:52:46 +08:00
close $script
file attributes ${destroot}${prefix}/bin/apktool -permissions ugo+x
}