summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKppqju772020-07-06 08:41:00 +0200
committerKppqju772020-07-06 08:41:00 +0200
commitbbd8e0173d7d85852333b7a81b74e4bed0f502a4 (patch)
tree2fce0ee314ed4da0d7eed3640955c32a08ac9021
parentdf74c97d2bfe24eb70547122eaa7839b5d336d5c (diff)
downloadaur-bbd8e0173d7d85852333b7a81b74e4bed0f502a4.tar.gz
Dependencies put in package() as only required for run and not build
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD5
2 files changed, 6 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b110c73db94..399e38b4906 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,10 @@
pkgbase = android-platform
pkgdesc = Android SDK Platform, latest API
pkgver = 30_r01
- pkgrel = 2
+ pkgrel = 3
url = http://developer.android.com/sdk/index.html
arch = any
license = custom
- depends = android-sdk
- depends = android-sdk-platform-tools
provides = android-platform-30
conflicts = android-platform-30
options = !strip
@@ -18,4 +16,6 @@ pkgbase = android-platform
sha384sums = 801ca80cee0aec1f658a121dfce88a111675a629df96da8a8d694210d33c8e03cb9e1bb364d259633c47c89003e29510
pkgname = android-platform
+ depends = android-sdk
+ depends = android-sdk-platform-tools
diff --git a/PKGBUILD b/PKGBUILD
index 4c83414662a..9217a198e7c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,12 +10,11 @@ pkgname=android-platform
_apilevel=30
_rev=r01
pkgver=${_apilevel}_${_rev}
-pkgrel=2
+pkgrel=3
pkgdesc="Android SDK Platform, latest API"
arch=('any')
url="http://developer.android.com/sdk/index.html"
license=('custom')
-depends=('android-sdk' 'android-sdk-platform-tools')
provides=("${pkgname}-${_apilevel}")
conflicts=("${pkgname}-${_apilevel}")
options=('!strip')
@@ -27,6 +26,8 @@ sha384sums=('c3d9fe96b6d9a36f91a123689465f7c33d4ff2035b2de7510f596ace9f4f1f15135
'801ca80cee0aec1f658a121dfce88a111675a629df96da8a8d694210d33c8e03cb9e1bb364d259633c47c89003e29510')
package() {
+ depends=('android-sdk' 'android-sdk-platform-tools')
+
mkdir -p "${pkgdir}/opt/android-sdk/platforms/"
find "${srcdir}" -maxdepth 1 -mindepth 1 -type d | grep -P 'android-[0-9]+(\.[0-9]*)*$' | while read directory; do
mv "${directory}" "${pkgdir}/opt/android-sdk/platforms/android-${_apilevel}"