summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGavin Lloyd2017-10-19 16:41:38 -0700
committerGavin Lloyd2017-10-19 16:41:38 -0700
commit6e333a418cddec06316d95c9913d6df8047300b2 (patch)
treeb47f26b940eab2059b67fbe9ee6002c9b90bd221 /PKGBUILD
parentb97f64a1efbf0fde6a6cf60fb32b97fb0219fca9 (diff)
downloadaur-6e333a418cddec06316d95c9913d6df8047300b2.tar.gz
Cleanup
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 11 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index fdcf0e7dafe..17c87d324d6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,21 +2,21 @@
pkgname=android-sdk-ant
pkgver=25.2.5
-pkgrel=1
+pkgrel=2
pkgdesc='Apache Ant build scripts and libraries for the Android SDK'
arch=('any')
url='https://developer.android.com/studio/releases/sdk-tools.html'
license=('custom')
depends=('android-sdk>=25.3.0')
-source=(
- "https://dl.google.com/android/repository/tools_r${pkgver}-linux.zip"
- 'LICENSE')
-sha256sums=(
- '577516819c8b5fae680f049d39014ff1ba4af870b687cab10595783e6f22d33e'
- 'b9ee34b4522a15c244a7f90d269bde1414f1064eba9d500f8a24ba22ead0446f')
+source=("https://dl.google.com/android/repository/tools_r${pkgver}-linux.zip"
+ 'LICENSE')
+sha256sums=('577516819c8b5fae680f049d39014ff1ba4af870b687cab10595783e6f22d33e'
+ 'b9ee34b4522a15c244a7f90d269bde1414f1064eba9d500f8a24ba22ead0446f')
package() {
- LIBS=(
+ cd "${srcdir}"
+
+ local LIBS=(
'ant-tasks.jar'
'common.jar'
'emma_ant.jar'
@@ -28,13 +28,13 @@ package() {
'manifest-merger.jar'
'sdklib.jar')
- for FILE in "${srcdir}/tools/ant"/*; do
+ for FILE in "tools/ant"/*; do
install -Dm644 "$FILE" "${pkgdir}/opt/android-sdk/tools/ant/$(basename $FILE)"
done
for LIB in ${LIBS[@]}; do
- install -Dm644 "${srcdir}/tools/lib/${LIB}" "${pkgdir}/opt/android-sdk/tools/lib/${LIB}"
+ install -Dm644 "tools/lib/${LIB}" "${pkgdir}/opt/android-sdk/tools/lib/${LIB}"
done
- install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}