[apktool] 02/08: Initial packaging (WIP)

Markus Koschany apo-guest at moszumanska.debian.org
Tue Feb 16 12:05:12 GMT 2016


This is an automated email from the git hooks/post-receive script.

apo-guest pushed a commit to branch master
in repository apktool.

commit 6e4e46cba29e71b32df30fef8fadf998d8beaadb
Author: Reiner Herrmann <reiner at reiner-h.de>
Date:   Mon Nov 23 00:10:46 2015 +0100

    Initial packaging (WIP)
---
 debian/changelog                  |   5 +
 debian/compat                     |   1 +
 debian/control                    |  30 ++++++
 debian/copyright                  |  27 +++++
 debian/gbp.conf                   |   7 ++
 debian/patches/fix_building.patch | 203 ++++++++++++++++++++++++++++++++++++++
 debian/patches/series             |   1 +
 debian/rules                      |  16 +++
 debian/source/format              |   1 +
 debian/watch                      |   3 +
 10 files changed, 294 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..75b487d
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+apktool (2.0.2-1) unstable; urgency=low
+
+  * Initial release (Closes: #nnnnnn)
+
+ -- Reiner Herrmann <reiner at reiner-h.de>  Tue, 25 Aug 2015 22:30:54 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..f8b5338
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,30 @@
+Source: apktool
+Section: devel
+Priority: extra
+Maintainer: Android tools Maintainer <android-tools-devel at lists.alioth.debian.org>
+Uploaders: Reiner Herrmann <reiner at reiner-h.de>
+Build-Depends: debhelper (>= 9),
+               gradle-debian-helper,
+               antlr3,
+               jflex,
+               libantlr3-runtime-java,
+               libcommons-lang3-java,
+               libcommons-cli-java,
+               libcommons-io-java,
+               libjgit-java,
+               libguava-java,
+               libjsr305-java,
+               libyaml-snake-java,
+               libxmlunit-java,
+               libxpp3-java,
+               proguard
+Standards-Version: 3.9.6
+Homepage: https://ibotpeaches.github.io/Apktool/
+Vcs-Git: https://anonscm.debian.org/git/android-tools/apktool.git
+Vcs-Browser: https://anonscm.debian.org/cgit/android-tools/apktool.git
+
+Package: apktool
+Architecture: all
+Depends: ${misc:Depends}
+Description: TBD
+ TODO
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..107e924
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,27 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: apktool
+Source: https://github.com/iBotPeaches/Apktool
+
+Files: *
+Copyright: TODO
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2015 Reiner Herrmann <reiner at reiner-h.de>
+License: Apache-2.0
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the complete text of the Apache version 2.0 license
+ can be found in "/usr/share/common-licenses/Apache-2.0".
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..ae1dc36
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,7 @@
+[DEFAULT]
+upstream-branch = upstream
+debian-branch = master
+upstream-tag = upstream/%(version)s
+debian-tag = debian/%(version)s
+pristine-tar = True
+sign-tags = True
diff --git a/debian/patches/fix_building.patch b/debian/patches/fix_building.patch
new file mode 100644
index 0000000..eff16e9
--- /dev/null
+++ b/debian/patches/fix_building.patch
@@ -0,0 +1,203 @@
+Work in progress...
+
+Index: apktool/build.gradle
+===================================================================
+--- apktool.orig/build.gradle
++++ apktool/build.gradle
+@@ -77,7 +77,6 @@ buildscript {
+         options.incremental = true
+     }
+     dependencies {
+-        classpath 'eu.appsatori:gradle-fatjar-plugin:0.3'
+     }
+ }
+ 
+@@ -92,12 +91,12 @@ subprojects {
+                 antlr_runtime: 'org.antlr:antlr-runtime:3.5',
+                 commons_cli: 'commons-cli:commons-cli:1.2',
+                 commons_io: 'commons-io:commons-io:2.4',
+-                commons_lang: 'org.apache.commons:commons-lang3:3.1',
+-                findbugs: 'com.google.code.findbugs:jsr305:1.3.9',
++                commons_lang: 'org.apache.commons:commons-lang3:3.x',
++                findbugs: 'com.google.code.findbugs:jsr305:0.x',
+                 guava: 'com.google.guava:guava:14.0',
+                 jflex: 'de.jflex:jflex:1.4.3',
+                 junit: 'junit:junit:4.6',
+-                proguard_gradle: 'net.sf.proguard:proguard-gradle:5.2.1',
++                proguard: 'proguard:proguard:5.2.1',
+                 snakeyaml: 'org.yaml:snakeyaml:1.12',
+                 xmlpull: 'xpp3:xpp3:1.1.4c',
+                 xmlunit: 'xmlunit:xmlunit:1.3',
+Index: apktool/brut.apktool.smali/build.gradle
+===================================================================
+--- apktool.orig/brut.apktool.smali/build.gradle
++++ apktool/brut.apktool.smali/build.gradle
+@@ -75,15 +75,15 @@ subprojects {
+ 
+     ext {
+         depends = [guava: 'com.google.guava:guava:18.0',
+-                   findbugs: 'com.google.code.findbugs:jsr305:1.3.9',
++                   findbugs: 'com.google.code.findbugs:jsr305:0.x',
+                    junit: 'junit:junit:4.6',
+                    antlr_runtime: 'org.antlr:antlr-runtime:3.5.2',
+                    antlr: 'org.antlr:antlr:3.5.2',
+                    stringtemplate: 'org.antlr:stringtemplate:3.2.1',
+                    commons_cli: 'commons-cli:commons-cli:1.2',
+                    jflex: 'de.jflex:jflex:1.4.3',
+-                   jflex_plugin: 'co.tomlee.gradle.plugins:gradle-jflex-plugin:0.0.1',
+-                   proguard_gradle: 'net.sf.proguard:proguard-gradle:5.1',
++                   //jflex_plugin: 'co.tomlee.gradle.plugins:gradle-jflex-plugin:0.0.1',
++                   proguard: 'proguard:proguard:5.1',
+                    dx: 'com.google.android.tools:dx:1.7'
+         ]
+     }
+Index: apktool/brut.apktool.smali/baksmali/build.gradle
+===================================================================
+--- apktool.orig/brut.apktool.smali/baksmali/build.gradle
++++ apktool/brut.apktool.smali/baksmali/build.gradle
+@@ -31,10 +31,11 @@
+ 
+ buildscript {
+     repositories {
++        flatDir { dirs '/usr/share/java' }
+         mavenCentral()
+     }
+     dependencies {
+-        classpath depends.proguard_gradle
++        classpath depends.proguard
+     }
+ }
+ 
+Index: apktool/brut.apktool.smali/smali/build.gradle
+===================================================================
+--- apktool.orig/brut.apktool.smali/smali/build.gradle
++++ apktool/brut.apktool.smali/smali/build.gradle
+@@ -30,16 +30,17 @@
+  */
+ 
+ apply plugin: 'antlr'
+-apply plugin: 'jflex'
++//apply plugin: 'jflex'
+ 
+ buildscript {
+     repositories {
++        flatDir { dirs '/usr/share/java' }
+         mavenCentral()
+     }
+ 
+     dependencies {
+-        classpath depends.jflex_plugin
+-        classpath depends.proguard_gradle
++        //classpath depends.jflex_plugin
++        classpath depends.proguard
+     }
+ }
+ 
+@@ -50,7 +51,7 @@ configurations {
+ 
+     // The jflex lexer doesn't have any runtime dependencies, so remove the dependency
+     // that gets added by the jflex plugin
+-    compile.exclude group: 'de.jflex', module: 'jflex'
++    //compile.exclude group: 'de.jflex', module: 'jflex'
+ }
+ 
+ idea {
+@@ -78,7 +79,7 @@ dependencies {
+     testCompile depends.junit
+ 
+     antlr depends.antlr
+-    jflex depends.jflex
++    //jflex depends.jflex
+ }
+ 
+ processResources.inputs.property('version', version)
+@@ -103,9 +104,9 @@ generateGrammarSource {
+     outputDirectory = new File(outputDirectory, 'org/jf/smali')
+ }
+ 
+-generateJFlexSource {
+-    outputDirectory = new File(outputDirectory, 'org/jf/smali')
+-}
++//generateJFlexSource {
++//    outputDirectory = new File(outputDirectory, 'org/jf/smali')
++//}
+ 
+ task proguard(type: proguard.gradle.ProGuardTask, dependsOn: fatJar) {
+     def outFile = fatJar.destinationDir.getPath() + '/' + fatJar.baseName + '-' +
+Index: apktool/brut.apktool/apktool-cli/build.gradle
+===================================================================
+--- apktool.orig/brut.apktool/apktool-cli/build.gradle
++++ apktool/brut.apktool/apktool-cli/build.gradle
+@@ -13,7 +13,7 @@
+  *  See the License for the specific language governing permissions and
+  *  limitations under the License.
+  */
+-apply plugin: 'eu.appsatori.fatjar'
++//apply plugin: 'eu.appsatori.fatjar'
+ 
+ dependencies {
+     compile project(':brut.apktool:apktool-lib')
+@@ -21,30 +21,31 @@ dependencies {
+ 
+ buildscript {
+     repositories {
++        flatDir { dirs '/usr/share/java' }
+         mavenCentral()
+     }
+ 
+     dependencies {
+-        classpath depends.proguard_gradle
++        classpath depends.proguard
+     }
+ }
+ 
+ gradle.taskGraph.whenReady {
+-  fatJar { 
+-    manifest {
+-      attributes("Main-Class": "brut.apktool.Main")
+-    }
+-  }
++  //fatJar { 
++  //  manifest {
++  //    attributes("Main-Class": "brut.apktool.Main")
++  //  }
++  //}
+ }
+ 
+ task cleanOutputDirectory(type: Delete) {
+     delete fileTree(dir: jar.destinationDir.getPath(), exclude: "apktool-cli.jar")
+ }
+ 
+-task proguard(type: proguard.gradle.ProGuardTask, dependsOn: fatJar) {
++task proguard(type: proguard.gradle.ProGuardTask) {
+     def outFile = jar.destinationDir.getPath() + '/' + "apktool" + '-' + project.apktool_version + '-small' + '.' + jar.extension
+ 
+-    injars fatJar.archivePath
++    //injars fatJar.archivePath
+     outjars outFile
+ 
+     libraryjars "${System.properties['java.home']}/lib/rt.jar"
+@@ -63,4 +64,4 @@ task proguard(type: proguard.gradle.ProG
+ }
+ 
+ proguard.dependsOn cleanOutputDirectory
+-tasks.getByPath(':release').dependsOn(proguard)
+\ No newline at end of file
++tasks.getByPath(':release').dependsOn(proguard)
+Index: apktool/brut.apktool.smali/dexlib2/accessorTestGenerator/build.gradle
+===================================================================
+--- apktool.orig/brut.apktool.smali/dexlib2/accessorTestGenerator/build.gradle
++++ apktool/brut.apktool.smali/dexlib2/accessorTestGenerator/build.gradle
+@@ -31,9 +31,9 @@
+ 
+ dependencies {
+     compile project(':brut.apktool.smali:util')
+-    compile 'com.google.code.findbugs:jsr305:1.3.9'
++    compile 'com.google.code.findbugs:jsr305:0.x'
+     compile 'com.google.guava:guava:13.0.1'
+     compile 'org.antlr:ST4:4.0.7'
+ 
+     testCompile 'junit:junit:4.6'
+-}
+\ No newline at end of file
++}
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..90b20f1
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+#fix_building.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2743f86
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+
+export DH_VERBOSE=1
+
+%:
+	dh $@ --buildsystem=gradle
+
+
+# if building without gradle-debian-helper, use:
+#
+#override_dh_auto_build:
+#	gradle --offline --refresh-dependencies --stacktrace --no-daemon --gradle-user-home debian/gradle-user-home
+#
+#override_dh_auto_clean:
+#	dh_auto_clean
+#	rm -rf debian/gradle-user-home
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..728b3e8
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/apktool-$1\.tar\.gz/ \
+  https://github.com/iBotPeaches/apktool/tags .*/v?(\d\S*)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/apktool.git



More information about the pkg-java-commits mailing list