parlay

yet another gentoo overlay
git clone https://git.parazyd.org/parlay
Log | Files | Refs | README

commit 52eabd34a45fcf7cc77470b44a11d39feb47ee73
parent 2179f93be14f1e4e20ce604b3da72caf7519755e
Author: parazyd <parazyd@dyne.org>
Date:   Tue,  1 Oct 2024 13:14:20 +0200

dev-util/apktool: Add 2.10.0 ebuild

Diffstat:
Adev-util/apktool/Manifest | 1+
Adev-util/apktool/apktool-2.10.0.ebuild | 29+++++++++++++++++++++++++++++
Adev-util/apktool/files/apktool | 7+++++++
Adev-util/apktool/metadata.xml | 14++++++++++++++
4 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/dev-util/apktool/Manifest b/dev-util/apktool/Manifest @@ -0,0 +1 @@ +DIST apktool-2.10.0.jar 24352463 BLAKE2B 55fb57a75e32d10d18b7732fee5689d5e5d4bd7c1a3f864d188e5cd6e7317ea70d3e6aa52e211449bdb927bb98a6e4de3d2127dd01059dd77decd630e2c7ddb9 SHA512 0fca885fea5f58e1eea4ee6777bb6d20eea9c7342a9ff940a8cad79bc71d8408b25d5d6fd424de4066ad8b4d7abf1f3b8551f96cd3b1023363afb66eba7893c6 diff --git a/dev-util/apktool/apktool-2.10.0.ebuild b/dev-util/apktool/apktool-2.10.0.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="A tool for reengineering 3rd party, closed, binary Android apps" +HOMEPAGE="https://ibotpeaches.github.io/Apktool/" +SRC_URI="https://bitbucket.org/iBotPeaches/apktool/downloads/${PN}_${PV}.jar -> ${P}.jar" +#SRC_URI="https://github.com/iBotPeaches/Apktool/releases/download/v${PV}/apktool_${PV}.jar" +S="${WORKDIR}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="tools" + +RDEPEND="|| ( virtual/jre virtual/jdk ) + tools? ( dev-util/android-sdk-build-tools )" + +src_unpack() { + dodir "${S}" + cp -L "${DISTDIR}/${A}" "${S}/${PN}.jar" || die +} + +src_install() { + dobin "${FILESDIR}/apktool" + insinto "/opt/${PN}/" + doins apktool.jar +} diff --git a/dev-util/apktool/files/apktool b/dev-util/apktool/files/apktool @@ -0,0 +1,7 @@ +#!/bin/sh + +jarpath="/opt/apktool/apktool.jar" + +javaOpts="-Xmx512M -Dfile.encoding=utf-8" + +java $javaOpts -jar "$jarpath" "$@" diff --git a/dev-util/apktool/metadata.xml b/dev-util/apktool/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>blshkv@pentoo.ch</email> + <name>Anton Bolshakov</name> + </maintainer> + <upstream> + <remote-id type="bitbucket">iBotPeaches/apktool</remote-id> + </upstream> + <use> + <flag name="tools">Add Android SDK build tools support</flag> + </use> +</pkgmetadata>