apktool: 1.5.2 -> 2.2.2
This commit is contained in:
parent
f3e4307f3e
commit
d71fb25b08
@ -2,30 +2,25 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "apktool-${version}";
|
name = "apktool-${version}";
|
||||||
version = "1.5.2";
|
version = "2.2.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://android-apktool.googlecode.com/files/apktool${version}.tar.bz2";
|
url = "https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_${version}.jar";
|
||||||
sha1 = "2dd828cf79467730c7406aa918f1da1bd21aaec8";
|
sha256 = "1a94jw0ml08xdwls1q9v5p1zak5qrbw2zyychnm5vch8znyws411";
|
||||||
};
|
};
|
||||||
|
|
||||||
unpackCmd = ''
|
phases = [ "installPhase" ];
|
||||||
tar -xvf $src || true
|
|
||||||
cd apktool*
|
|
||||||
'';
|
|
||||||
|
|
||||||
phases = [ "unpackPhase" "installPhase" ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
buildInputs = [ makeWrapper ];
|
|
||||||
|
|
||||||
sourceRoot = ".";
|
sourceRoot = ".";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -D apktool.jar "$out/libexec/apktool/apktool.jar"
|
install -D ${src} "$out/libexec/apktool/apktool.jar"
|
||||||
mkdir -p "$out/bin"
|
mkdir -p "$out/bin"
|
||||||
makeWrapper "${jre}/bin/java" "$out/bin/apktool" \
|
makeWrapper "${jre}/bin/java" "$out/bin/apktool" \
|
||||||
--add-flags "-jar $out/libexec/apktool/apktool.jar" \
|
--add-flags "-jar $out/libexec/apktool/apktool.jar" \
|
||||||
--prefix PATH : "${buildTools}/build-tools/android-4.3/"
|
--prefix PATH : "${buildTools}/build-tools/25.0.1/"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
@ -33,7 +28,7 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = https://code.google.com/p/android-apktool/;
|
homepage = https://code.google.com/p/android-apktool/;
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ offline ];
|
maintainers = with maintainers; [ offline ];
|
||||||
platforms = with platforms; unix;
|
platforms = with platforms; unix;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user