diff options
author | Kyle Keen | 2014-12-10 00:00:11 +0000 |
---|---|---|
committer | Kyle Keen | 2014-12-10 00:00:11 +0000 |
commit | a904f0fd7aa3de5381fd6f6ecf8d243c9443c628 (patch) | |
tree | 367b02e1ab0f70b6a6680c9d735203d497e5337d | |
parent | c5dbb5490c79c151cd160ae19308a923afc225ac (diff) | |
download | aur-a904f0fd7aa3de5381fd6f6ecf8d243c9443c628.tar.gz |
updated on Wed Dec 10 00:00:10 UTC 2014
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 4 insertions, 5 deletions
@@ -1,6 +1,6 @@ pkgbase = android-apktool-git pkgdesc = a tool for reengineering Android apk files - pkgver = 2.0.0.RC2.g02b5c7c + pkgver = 2.0.0.RC3 pkgrel = 1 url = https://code.google.com/p/android-apktool/ arch = i686 @@ -5,7 +5,7 @@ pkgname=android-apktool-git _gitname=Apktool _gitbranch=master _gitauthor=iBotPeaches -pkgver=2.0.0.RC2.g02b5c7c +pkgver=2.0.0.RC3 pkgrel=1 pkgdesc="a tool for reengineering Android apk files" arch=('i686' 'x86_64') @@ -19,14 +19,13 @@ sha512sums=('SKIP') pkgver() { cd "$srcdir/$_gitname" - # This is a heck of a line, but I found it way the only way of getting the version number properly - printf "$(grep "def apktoolversion_major" build.gradle | sed "s/.*'\(.*\)'.*/\1/").$(grep "def apktoolversion_minor" build.gradle | sed "s/.*'\(.*\)'.*/\1/").$(git describe | sed -n -e 's/^.*-//p')" + git describe | sed -r 's/([^-]*-g)/r\1/;s/-/./g;s/v//' } build() { pacman -Qs openjdk &> /dev/null && printf "\033[31;1mWarning, there has been issues in the past with OpenJDK and apktool. Please install Oracle's JDK before marking the package as broken.\n\033[0m\n" - # Ideally this should be fixed in the build script of apktool and not here; without it, aapt cannot be found + # aapt cannot be found without this line PATH="/opt/android-sdk/build-tools/$(ls -1 /opt/android-sdk/build-tools/ | head -1):$PATH" cd "$srcdir/$_gitname" |