summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD17
1 files changed, 5 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 456fe95dd49..33b21e98bbc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,4 +1,4 @@
-# Maintainer: Yen Chi Hsuan <yan12125 at gmail dot com>
+# Maintainer: Chih-Hsuan Yen <yan12125@gmail.com>
pkgname=android-sdk-cmake
_major=3
@@ -8,34 +8,27 @@ pkgver=$_major.$_minor.$_micro
pkgrel=2
pkgdesc='CMake from Google Android SDK'
arch=('x86_64')
-url="http://developer.android.com/sdk/index.html"
+url="https://developer.android.com/studio/index.html"
license=('custom:android-sdk-license')
depends=('bash')
makedepends=('libxml2') # xmllint
source=("https://dl-ssl.google.com/android/repository/cmake-${pkgver}-linux-x86_64.zip"
package.xml.in)
-noextract=("cmake-${pkgver}-linux-x86_64.zip")
install=android-sdk-cmake.install
# sha1sum is from https://dl.google.com/android/repository/repository2-1.xml
sha1sums=('71c539b9c33f0943e9ad6251fea0b161c0b70782'
'5ca8c4e61ee3a3294865afbd5d16e83662871e06')
options=('!strip')
-prepare() {
- cd "$srcdir"
- mkdir -p cmake-pkg
- cd cmake-pkg
- bsdtar -x -f ../cmake-$pkgver-linux-x86_64.zip
-}
-
build() {
cd "$srcdir"
sed "s#%MAJOR%#$_major#g;s#%MINOR%#$_minor#g;s#%MICRO%#$_micro#g" package.xml.in > package.xml
}
package() {
- install -Ddm755 "$pkgdir"/opt/android-sdk/cmake
- cp -dr --no-preserve=ownership "$srcdir"/cmake-pkg "$pkgdir"/opt/android-sdk/cmake/$pkgver
+ install -Ddm755 "$pkgdir"/opt/android-sdk/cmake/$pkgver
+ cp -dr --no-preserve=ownership "$srcdir"/{bin,share,doc,android.toolchain.cmake,source.properties} \
+ "$pkgdir"/opt/android-sdk/cmake/$pkgver
# This is required for sdkmanager to recognize this package
install -Dm644 "$srcdir"/package.xml "$pkgdir"/opt/android-sdk/cmake/$pkgver/package.xml