Package Details: android-apktool 2.11.1-2

Git Clone URL: https://aur.archlinux.org/android-apktool.git (read-only, click to copy)
Package Base: android-apktool
Description: a tool for reengineering Android apk files
Upstream URL: https://github.com/iBotPeaches/Apktool
Licenses: Apache-2.0
Submitter: TamCore
Maintainer: Muflone
Last Packager: Muflone
Votes: 249
Popularity: 2.36
First Submitted: 2010-10-25 15:09 (UTC)
Last Updated: 2025-03-23 18:14 (UTC)

Dependencies (3)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 Next › Last »

bemxio commented on 2023-08-02 16:28 (UTC)

@jnbrains I think it will be best to make the android-apktool-bin package and then send a merge request for this package. I can join as a co-maintainer, too!

jnbrains commented on 2023-07-31 10:10 (UTC) (edited on 2023-07-31 10:16 (UTC) by jnbrains)

Here's an example for the updated version (2.8.1) with few minor fixes/cleanups:

# Maintainer: Muflone http://www.muflone.com/contacts/english/
# Contributor: navigaid <navigaid@gmail.com>

pkgname=android-apktool-bin
pkgver=2.8.1
pkgrel=1
pkgdesc='A tool for reverse engineering Android apk files'
arch=('any')
url='https://github.com/iBotPeaches/Apktool'
license=('Apache')
depends=('java-runtime>=8')
conflicts=('android-apktool' 'android-apktool-git')
source=("https://github.com/iBotPeaches/Apktool/releases/download/v${pkgver}/apktool_${pkgver}.jar"
        'apktool')
noextract=("apktool_${pkgver}.jar")
sha256sums=('7b4a8e1703e228d206db29644b71141687d8a111b55b039b08b02dfa443ab0f9'
            'f1d4cf2eb2d12512dbbe583cd7fb35b8b8a44e0e3a1d5e88015ab01d9bc1ce62')

package() {
  install -Dm 0755 "${srcdir}/apktool" "${pkgdir}/usr/bin/apktool"
  install -Dm 0644 "${srcdir}/apktool_${pkgver}.jar" "${pkgdir}/usr/share/${pkgname}/apktool.jar"
}
  • the package name should end with -bin, as it comes as a prebuilt jar
  • apktool can be easily distributed with PKGBUILD, with the 'libdir' change applied. The script hasn't been updated since 2015, and I don't expect it to be. That way you get one less external dependency and better control of arch specific setup.
  • no need to waste time/resources to extract the jar file, as it's going to be used as it is.

Cheers

0xd13ad10c commented on 2022-12-31 20:52 (UTC)

@muflone Latest version is v2.7.0. Patch is below.

 # Contributor: navigaid <navigaid@gmail.com>

 pkgname=android-apktool
-pkgver=2.6.1
+pkgver=2.7.0
 pkgrel=1
 pkgdesc="a tool for reengineering Android apk files"
 arch=('any')
@@ -11,7 +11,7 @@ license=('Apache')
 depends=('java-runtime')
 source=("https://github.com/iBotPeaches/Apktool/releases/download/v${pkgver}/apktool_${pkgver}.jar"
         "http://connortumbleson.com/apktool/googlecode/apktool-install-linux-r04-brut1.tar.bz2")
-sha256sums=('bc2b9a87ac5a86905b6ca343c21a0db3bc37bdd51154bc9cdf65523d95895d34'
+sha256sums=('c11b5eb518d9ac2ab18e959cbe087499079072b04d567cdcae5ceb447f9a7e7d'
             'cffa5c0a46bab9c66da02cc5db651c3a8321bee98580815e44c802d62a696dfa')

 prepare() {

jamazi commented on 2022-07-16 18:58 (UTC) (edited on 2022-07-16 18:59 (UTC) by jamazi)

@Muflone please update to v2.6.1

heisenbugs commented on 2022-07-01 09:41 (UTC)

In addition to updating the package to 2.6.1, the source for apktool-install-linux-r04-brut1.tar.bz2 may need to be changed. When I tried installing just now connortumbleson.com was down. The file is currently still available at: https://web.archive.org/web/20220309133050/https://connortumbleson.com/apktool/googlecode/apktool-install-linux-r04-brut1.tar.bz2

mynacol commented on 2022-05-29 09:16 (UTC)

Hi @Muflone, mind updating to v2.6.1?

You just have to change the version number and the hash, see diff:

diff --git a/PKGBUILD b/PKGBUILD
index 9df9bda..513ff23 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
 # Contributor: navigaid <navigaid@gmail.com>

 pkgname=android-apktool
-pkgver=2.6.0
+pkgver=2.6.1
 pkgrel=1
 pkgdesc="a tool for reengineering Android apk files"
 arch=('any')
@@ -11,7 +11,7 @@ license=('Apache')
 depends=('java-runtime')
 source=("https://github.com/iBotPeaches/Apktool/releases/download/v${pkgver}/apktool_${pkgver}.jar"
         "http://connortumbleson.com/apktool/googlecode/apktool-install-linux-r04-brut1.tar.bz2")
-sha256sums=('f750a3cd2c1f942f27f5f7fd5d17eada3bdaff0a6643f49db847e842579fdda5'
+sha256sums=('bc2b9a87ac5a86905b6ca343c21a0db3bc37bdd51154bc9cdf65523d95895d34'
             'cffa5c0a46bab9c66da02cc5db651c3a8321bee98580815e44c802d62a696dfa')

 prepare() {

sToRmInG commented on 2021-01-11 12:43 (UTC) (edited on 2021-01-11 12:45 (UTC) by sToRmInG)

@Muflone you're right, sorry about that.

I switched to the GitHub wrapper as well. I use the package version to specify which wrapper script to use:

# Maintainer: Muflone http://www.muflone.com/contacts/english/
# Contributor: navigaid <navigaid@gmail.com>

pkgname=android-apktool
pkgver=2.5.0
pkgrel=1
pkgdesc="a tool for reengineering Android apk files"
arch=('any')
url="http://forum.xda-developers.com/showthread.php?t=1755243"
license=('Apache')
depends=('java-runtime')
source=("https://github.com/iBotPeaches/Apktool/releases/download/v${pkgver}/apktool_${pkgver}.jar"
        "https://raw.githubusercontent.com/iBotPeaches/Apktool/v${pkgver}/scripts/linux/apktool")
sha256sums=('b392d7cb99b592e9c5acc3c06f1b0f180edde96c66b86b3d6932b7c0c4079fe4'
            'e9a49351b4df65d532e7c3cef27144c7e0e1c2daad1e367e65b2acef6715b863')

prepare() {
  sed -i 's/libdir=.*progdir/libdir="\/usr\/share\/'${pkgname}'/' apktool
}

package() {
  install -Dm 0755 "${srcdir}/apktool" "${pkgdir}/usr/bin/apktool"
  install -Dm 0644 "${srcdir}/apktool_${pkgver}.jar" "${pkgdir}/usr/share/${pkgname}/apktool.jar"
}

Muflone commented on 2021-01-09 17:21 (UTC)

@sToRmInG it would be more useful if you had contributed in offering the fix instead of keeping your PKGBUILD

sToRmInG commented on 2021-01-09 07:34 (UTC)

I'd have an updated package ready. @Muflone: Can you add me as an additional maintainer or orphan the package?